Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,977
» Latest member: hoki1881
» Forum threads: 38,732
» Forum posts: 175,563

Full Statistics

Online Users
There are currently 40 online users.
» 1 Member(s) | 32 Guest(s)
Bing, Google, AOL, Applebot, Mojeek, AOL, deanhystad

Latest Threads
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Today, 07:43 AM
» Replies: 2
» Views: 257
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Today, 12:21 AM
» Replies: 2
» Views: 889
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 05:45 PM
» Replies: 6
» Views: 938
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 627
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,967
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,388
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,965
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,400
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,303
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,636

 
  Nested dictionary issue
Posted by: Will86 - Apr-15-2019, 08:13 AM - Forum: General Coding Help - Replies (3)

Hi all,

I am struggling a bit with some code and would really appreciate some guidance.

I currently have the below input dictionary
[quote][Ord..... More

Print this item

  Suggestions/Improvements (pygame)
Posted by: SheeppOSU - Apr-15-2019, 02:47 AM - Forum: Game Development - Replies (3)

I finally reached the start of my game. I'm gonna add more to it but before that, I would like some suggestions on what i can improve on. P.S. I'm goi..... More

Print this item

  The minor updating of Python3( 3.3.5 → 3.7.3)
Posted by: tinan - Apr-15-2019, 02:39 AM - Forum: General Coding Help - Replies (1)

We consider that the minor updating of Python3 ( 3.3.5 → 3.7.3).
Along with this updating, do you know any good tools and methods to confrim the erro..... More

Print this item

  Slicing Python list of strings into individual characters
Posted by: Drone4four - Apr-15-2019, 02:35 AM - Forum: General Coding Help - Replies (5)

I’m trying to get slice a list of strings into individual characters ...but using slicing.

Here is my list:

[code]
first_list = ["apples", "bananas..... More

Print this item

  Unicode character widths
Posted by: Skaperen - Apr-15-2019, 02:30 AM - Forum: News and Discussions - Replies (3)

while trying to print out a display map of various Unicode characters paired with their UTF-8 bytes in hex, i am finding unpredictability in how much ..... More

Print this item

  Newb question: Debugging + Linting Python in Visual Studio Code
Posted by: Drone4four - Apr-15-2019, 01:48 AM - Forum: General Coding Help - Replies (1)

I’m closely following along Microsoft’s official docs for VSC for Python debugging and ..... More

Print this item

  Best section to do a while loop in my code
Posted by: mrapple2020 - Apr-15-2019, 01:14 AM - Forum: General Coding Help - No Replies

Hello, this is my goal:
User will enter password thru a function getpass(). That function to get password will occur just one time.
Then a list of I..... More

Print this item

  pyQt5 QCalendarWidget setHeaderTextFormat
Posted by: zazen000 - Apr-14-2019, 11:50 PM - Forum: GUI - No Replies

As written displays widget with a black background (what I want) except for the outer frame and the horizontal header. want to make the entire widge..... More

Print this item

  chatbot errors
Posted by: francisco_neves2020 - Apr-14-2019, 11:46 PM - Forum: GUI - No Replies

[python]import nltk
import numpy as np
import random
import string # to process standard python strings

f=open('chatbot.txt','r',errors = 'ignor..... More

Print this item

  Tracking Object Help Algorithm
Posted by: afyaldiz - Apr-14-2019, 11:28 PM - Forum: Data Science - No Replies

i have a few problems
Trying to do object tracking application. I created a gui, whichever of the datasets I have pressed ( by servo), but I have a f..... More

Print this item

  How to list number of times element is in defaultdict and delete it
Posted by: mrapple2020 - Apr-14-2019, 10:08 PM - Forum: General Coding Help - Replies (3)

Goal:
if I see a certain value (example below is "0/1") listed more than 2 or more times I want:
1) Remove all respective items from the defaultdic..... More

Print this item

  I want to add a help section to the electronic board game I'm writing.
Posted by: keames - Apr-14-2019, 10:02 PM - Forum: GUI - Replies (7)

I am in the process of writing an Othello (reversi) game for my mother. It's nearly done, but to polish it off, I want to add a help section. Currentl..... More

Print this item

  Issues with while loop, while (var != 0): does not work, but while (var !=''): works
Posted by: danilo - Apr-14-2019, 09:59 PM - Forum: Homework - Replies (2)

Hi there,

I have an issue (line 44 of this code) when using this statement, it creates an infinite loop:
while capital != 0:
However, everyt..... More

Print this item

  Unknown error in pygame :(
Posted by: TheDovah77 - Apr-14-2019, 09:06 PM - Forum: General Coding Help - Replies (1)

So I am kind of new to pygame and python in general, and I am trying to make this basic game. But when I try to launch the game it just says there is ..... More

Print this item

  Passing a local variable outside of a function
Posted by: malonn - Apr-14-2019, 06:22 PM - Forum: General Coding Help - Replies (8)

I have a sort of specific question today. I want to know how, in the specific case of my code, how I can pass a function's local variable outside the..... More

Print this item

  strip space from end of a row of text
Posted by: ineuw - Apr-14-2019, 06:08 PM - Forum: General Coding Help - Replies (4)

I am using Linux Mint 19.1 and Python 3.6.

Proofreading pages of text on the web, where each row ends with a space, followed by a newline. I need ..... More

Print this item

  A very simple, general question of the big picture of how python works
Posted by: Markg2 - Apr-14-2019, 06:01 PM - Forum: News and Discussions - Replies (4)

I will be starting to learn Python once I settle on a really good beginner text & free online beginner 'class' (that's not constantly asking you to up..... More

Print this item

  Validating information from .csv file before executemany
Posted by: mzmingle - Apr-14-2019, 05:50 PM - Forum: General Coding Help - Replies (7)

Hi,

I'm currently having an issue with my code. I have an option for a user to choose a .csv file with names and surnames of their students and thi..... More

Print this item

  fastest way to record values between quotes
Posted by: paul18fr - Apr-14-2019, 04:06 PM - Forum: General Coding Help - Replies (5)

Dear All,

I've not been using Python for years (I'm rather a matlab user), But I've the opportunity to work with it again. Blush

The goal i..... More

Print this item

  csv to xlsx, remove " while writing to excel
Posted by: anna - Apr-14-2019, 03:53 PM - Forum: General Coding Help - Replies (3)

Hi All,

My sample data from csv file is as below, I am reading csv file and writing to excel, but " not getting removed, however, I pasting same to..... More

Print this item

  Code snippets for building multi column Listviews and or Treeview
Posted by: KevinBrown - Apr-14-2019, 03:23 PM - Forum: General Coding Help - Replies (3)

I have been working with another programming language for many years and I was very well used to Listview 'widgets' that had multiple column abilities..... More


Attached Files

Thumbnail(s)
       
Print this item

  Error loading location on openweathermap via API with Kivy
Posted by: Gigux - Apr-14-2019, 02:40 PM - Forum: General Coding Help - Replies (10)

Dear all,
I am following the examples reported in Phillips' manual 'creating apps in Kivy' (O'Reilly); exercise 2-10 is related to using API to quer..... More

Print this item

  upload Files to FTP and file name is Chinese
Posted by: mollychen - Apr-14-2019, 01:29 PM - Forum: General Coding Help - Replies (2)

hi,

i have a file folder to be uploaded to FTP, but some file names are Simple Chinese, some are traditional Chinese.
Currently,traditional Chines..... More

Print this item

  Multiple process access to a serial port
Posted by: mkonnov - Apr-14-2019, 12:42 PM - Forum: General Coding Help - No Replies

Hi all,


I need to implement the multiple process access to a serial port.
Do anybody implemented that ?

My code call will look like the follo..... More

Print this item

  Problem to sent message with pyserial and ser.write
Posted by: DJ_Depannage - Apr-14-2019, 10:23 AM - Forum: General Coding Help - Replies (18)

Hello Everybody,

I need your help to solve a problem.

I need to send command line in MESSAGE BOARD - MML16R Velleman connect by USB/RS232 in Ras..... More

Print this item

  How can I make a faster search algorithm
Posted by: pianistseb - Apr-14-2019, 07:42 AM - Forum: General Coding Help - Replies (19)

I am using biopython for dna sequences. I want to make an algorithm which searches a big motif (about 1000 letters). Because it is impossible to find ..... More

Print this item

  drawing, moving, and collision problems (pygame)
Posted by: SheeppOSU - Apr-14-2019, 07:10 AM - Forum: Game Development - Replies (26)

I'm making this game and do far it's been good but now I have a problem. Tje problem is my character does not appear on the screen. It did what it was..... More

Print this item

  looking for a multi item container
Posted by: Skaperen - Apr-14-2019, 06:55 AM - Forum: General Coding Help - Replies (2)

this would be quite easy to implement; perhaps easier than the effort to find an existing one (since i am not very good at the latter), perhaps alread..... More

Print this item

  Evaluating multiple lists in a tuple
Posted by: cdogo - Apr-14-2019, 04:27 AM - Forum: General Coding Help - Replies (2)

we have a program that evaluates and adds the content of one list but we want a function that evaluates and adds for an arbitrary amount of lists. rig..... More

Print this item

  importing an attribute
Posted by: Skaperen - Apr-14-2019, 03:06 AM - Forum: General Coding Help - Replies (7)

when i do:

import botocore.session
my_session = botocore.session.get_session()
it works OK.

but if i do:[python]import botocore
..... More

Print this item

  getting error No module named flask_login
Posted by: aruneshdutta - Apr-14-2019, 02:22 AM - Forum: General Coding Help - No Replies

Hello all

I was installing Pgadmin for controlling Postgres database as instructed was following steps, in execution of pgadmin4.py file for config..... More

Print this item

  too much "self."
Posted by: Skaperen - Apr-14-2019, 12:00 AM - Forum: General Coding Help - Replies (7)

lots of code has self. in so many places. what are good ways to reduce that? i hate typing the same thing so many times and have assi..... More

Print this item

  dclock in python
Posted by: Skaperen - Apr-13-2019, 11:53 PM - Forum: GUI - Replies (5)

Ubuntu (at least in 16.04) comes with a program called "dclock" that displays a 4 digit or 6 digit emulation of a 7-segment LED clock, stretchable to ..... More

Print this item

  Trying to strings of pos to int tuples
Posted by: SheeppOSU - Apr-13-2019, 11:22 PM - Forum: Game Development - Replies (2)

I'm working on a multiplayer game and was watching a tutorial. For one of the functions I need to read info. I'm getting an error when trying to split..... More

Print this item

  waking up every second
Posted by: Skaperen - Apr-13-2019, 08:57 PM - Forum: General Coding Help - Replies (4)

if you write some code to wake up every second, it could accumulate the system delays and quickly be way off. what have you done to deal with this? ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Integer Factorization Too... Today, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Today, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... Yesterday, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... Yesterday, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577379
  Tutorial Requ... 500782
  Web Scraping ... 441032
  Newbie with P... 385080
  New Users Int... 369615
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
hoki1881 Today
stephaniehendrix Today
Schirag Today
Jacobjoift Today
sophielane Yesterday

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020