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,963
» Latest member: chaoh1911
» Forum threads: 38,729
» Forum posts: 175,540

Full Statistics

Online Users
There are currently 62 online users.
» 1 Member(s) | 53 Guest(s)
Bing, Applebot, Google, AOL, AOL, Facebook, Mojeek, snippsat

Latest Threads
My First App
Forum: Code Review
Last Post: carlbidwell
1 hour ago
» Replies: 8
» Views: 8,371
what does % stand for in ...
Forum: General Coding Help
Last Post: carlbidwell
2 hours ago
» Replies: 3
» Views: 1,756
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
8 hours ago
» Replies: 3
» Views: 276
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Yesterday, 05:13 PM
» Replies: 4
» Views: 695
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:17 PM
» Replies: 1
» Views: 782
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:14 PM
» Replies: 6
» Views: 5,028
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Yesterday, 09:50 AM
» Replies: 1
» Views: 1,672
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Yesterday, 03:53 AM
» Replies: 1
» Views: 2,713
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:32 AM
» Replies: 0
» Views: 330
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-25-2025, 01:49 PM
» Replies: 2
» Views: 565

 
  exception during iteration loop
Posted by: Skaperen - Oct-23-2018, 06:54 AM - Forum: General Coding Help - Replies (6)

i open a file for reading and read it like:

i=open(ifn)
for line in i:
    ...
    ...
it reads over 352000 lines then gets a [u..... More

Print this item

  Create bitmap image for my exe
Posted by: atlass218 - Oct-23-2018, 06:12 AM - Forum: General Coding Help - Replies (5)

hi;
I am trying to create an executable application from a python file. for that, in the console of command prompt (windows 10 64 bits) I execute thi..... More

Print this item

  Resolution problem with pyinstaller
Posted by: Schreeg - Oct-23-2018, 04:27 AM - Forum: GUI - No Replies

Im about to finalize a Python3 program on my Mac and the program includes a GUI. By using Pyinstaller Im trying to convert my program into a single fi..... More

Print this item

  While loop with List and if stmt
Posted by: alinaveed786 - Oct-23-2018, 04:24 AM - Forum: General Coding Help - Replies (3)

Hi,

Unable to print "Yes". It's only printing "No". Can anyone please help me in the if part of the code, I think the error is there

[python]Var1 =..... More

Print this item

  how to open dx file in Python
Posted by: jiaming - Oct-23-2018, 02:18 AM - Forum: General Coding Help - Replies (8)

Would anyone tell me how to open a dx file in Python? I got stuck here. Thanks a bunch.

Print this item

  Appending inside elements of lists, in an exact location
Posted by: nhan826 - Oct-23-2018, 01:07 AM - Forum: General Coding Help - Replies (1)

In Python, how would I append to an element inside a list in a particular location? Ex.) if I have the list ['*4','*3','*2','*1'] and I want to add th..... More

Print this item

  loop through list made from query
Posted by: zxcv - Oct-23-2018, 12:23 AM - Forum: General Coding Help - Replies (1)

New to Python.
Need to loop through query results like
col1,col2
---------
'' , 123
'' , 23
'' , 200
'a' , 33
'a' , 1
'b' , 0
'b' , 1
'c' ..... More

Print this item

  Help with simple tip calculator
Posted by: DragonG - Oct-23-2018, 12:21 AM - Forum: General Coding Help - Replies (5)

Can someone please fix my code for a simple tip calculator? I am new to Python.
[python]
price_meal = raw_input("How much did your meal cost?")
tip = ..... More

Print this item

  Memory access speed problem
Posted by: Dupletor - Oct-22-2018, 08:10 PM - Forum: General Coding Help - No Replies

I have to change a lot of values in a matrix by values that only change position where to act, but never change value.

For example:
|3 3 3|
|2 2 ..... More

Print this item

  Count of sums
Posted by: mattis - Oct-22-2018, 07:55 PM - Forum: General Coding Help - Replies (9)

I would like to count sum(subsets) in the following code, how can i do this? thanks.

[python]import itertools

thelist = [0, 0, 0, 1, 1, 2, 2, 1]..... More

Print this item

  How can get first 255 bites from a string?
Posted by: Mike Ru - Oct-22-2018, 06:57 PM - Forum: General Coding Help - Replies (2)

I have a string that too long. I need to cut it to 255 bites. I don't know how to cut it.
[python]
import sys
def get_bite(a):
return sys.gets..... More

Print this item

  why does the counter need to go to -50000 for this to work?
Posted by: marienbad - Oct-22-2018, 05:44 PM - Forum: General Coding Help - Replies (3)

I was trying to create an effect like the one on here the other day where there is a bunch of dots and they resolve to form a word (it was a question ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Understanding the code
Posted by: Eugine - Oct-22-2018, 05:04 PM - Forum: General Coding Help - Replies (1)

Hi, I am new here. Can someone please help me understand this code? I know the output is 6 but I don't understand what res and i are.
[python]def func..... More

Print this item

  Python Debugger Suggestions
Posted by: nilamo - Oct-22-2018, 04:12 PM - Forum: General Coding Help - Replies (3)

https://python-forum.io/Thread-MySql-Cur...7#pid61337

tbh I highly dislike that the most common way to debug an application is..... More

Print this item

  Why Person() takes no arguments
Posted by: dianefly - Oct-22-2018, 03:37 PM - Forum: General Coding Help - Replies (3)

Hi, can anyone tell me why my code below does not work, with the TypeError: Person() takes no arguments? Thanks a lot in advance!


[python]class Pers..... More

Print this item

  Calling widget from another function?
Posted by: WuchaDoin - Oct-22-2018, 03:30 PM - Forum: GUI - Replies (1)

[python]class Inv(tk.Frame):


def __init__(self, parent, controller):
tk.Frame.__init__(self, parent)

table_frame = tk.LabelFr..... More

Print this item

  MySql Cursor field names.
Posted by: MuntyScruntfundle - Oct-22-2018, 01:59 PM - Forum: General Coding Help - Replies (1)

HI folks.

I've seen this somewhere, but I can't find it...

I can:
cursor.execute("blah and pharp...
for row in cursor:
print row[0]
prin..... More

Print this item

  A CLI based shopping program written in Python
Posted by: Ablazesphere - Oct-22-2018, 01:25 PM - Forum: Code sharing - Replies (5)

[python]
#MINI SHOPPING CLI PROGRAM
import time
import random

item = ["Laptop","T-Shirt","Pants"] #You may add your own items
cost = ["Rs 3560..... More

Print this item

  How can I return my list from a func?
Posted by: Mike Ru - Oct-22-2018, 11:53 AM - Forum: General Coding Help - Replies (3)

I have a list. I'm getting items that starting from number.
[python]
s = ['kdkkd', '1 america', 'wwww', '2 Russia', 'd333', '3England']
def get_tit..... More

Print this item

  Accessing IBM MQ using Python
Posted by: Rajeshs16 - Oct-22-2018, 10:38 AM - Forum: General Coding Help - Replies (6)

Hi,
I am looking to access IBM MQ via python, pyMQI looks to need C compiler, so unable to use it as I dont have option of installing the same on eve..... More

Print this item

  [split] How do i read particular text from scanned documents
Posted by: ganeshsai2912 - Oct-22-2018, 08:52 AM - Forum: Data Science - Replies (3)

How to read particular text (like empno,name,salary,etx) from scanned or image file and store in db using python with any one deep learning library (l..... More

Print this item

  Python 3.7.1 has been released
Posted by: DeaD_EyE - Oct-22-2018, 07:57 AM - Forum: News and Discussions - No Replies

Python 3.7.1 has been released: changelog
Download: ..... More

Print this item

  Clone full Anaconda system to a PC without internet connection.
Posted by: Jstechg - Oct-22-2018, 07:42 AM - Forum: News and Discussions - Replies (3)

I am starting to work with python and I have to clone the "Anaconda + Spyder" environment that was installed some time ago on a Windwos PC with an int..... More

Print this item

  won't exit a loop, please help
Posted by: hobbyprogrammer - Oct-22-2018, 03:26 AM - Forum: General Coding Help - Replies (9)

can't upload program code

Print this item

  Use try to get over problems?
Posted by: Pedroski55 - Oct-21-2018, 11:12 PM - Forum: General Coding Help - Replies (7)

I have a little routine to download email and save the text body, the students' answers, to my computer. It does what I want. However, for some reason..... More

Print this item

  Getting IP address
Posted by: MuntyScruntfundle - Oct-21-2018, 08:58 PM - Forum: General Coding Help - Replies (2)

How, I hope this can be a complicated issue, but please assume my device has one ip adapter, one address, no layers of oranges to peel away etc!

Th..... More

Print this item

  Python 3 install problem
Posted by: GeoffW1952 - Oct-21-2018, 08:03 PM - Forum: Bar - Replies (1)

I'm having a bad time installing Python3 on a new Linux Mint system. I extracted the install files to a directory in the root drive and executed the ..... More

Print this item

  mail.message parse
Posted by: klaarnou - Oct-21-2018, 06:54 PM - Forum: Networking - No Replies

Hello,

I would like to read mail from a pop3 server and parse it in to a email.message object.
The program below reads the message correctly.
But..... More

Print this item

  I'm looking for some help with winsound
Posted by: BubblesTheGiraffe - Oct-21-2018, 06:49 PM - Forum: General Coding Help - No Replies

Ok, so my code works. Running it in idle works fine and it plays the sound however when I try to run the program in the regular python console I hear ..... More

Print this item

  Help with apscheduler
Posted by: brakow87 - Oct-21-2018, 06:18 PM - Forum: General Coding Help - Replies (5)

Gettinf the following error when running software for SwitchDoc's GroveWeatherPi:

[error]pi@raspberrypi:~/SDL_Pi_GroveWeatherPi $ sudo python Grove..... More

Print this item

  "ModuleNotFoundError: No module named '_tkinter' in Python 3.8 Alfa 0
Posted by: programmerc - Oct-21-2018, 04:36 PM - Forum: GUI - Replies (1)

I have installed Python 3.9 alfa 0 from spurce code
But I got this error message:

[error]
programmer@crea:~/github/cpython$ python3.8
Python 3...... More

Print this item

  the AI takeover ?
Posted by: TrueStudentOfPython - Oct-21-2018, 03:29 PM - Forum: News and Discussions - Replies (18)

Hello all,

Is anyone concerned about what the next 20 years of programming looks like with A.I. in the picture ? Do you feel like there will b..... More

Print this item

  Python error. Can't figure it out.
Posted by: ignatius - Oct-21-2018, 03:20 PM - Forum: General Coding Help - Replies (9)

Hi.

I'm trying to write a BBS lister script in Python (obviously). But, whenever I try to execute the script, I get this error:

File "./proj.p..... More

Print this item

  [split] Bad magic number. What is it ?
Posted by: Douglas - Oct-21-2018, 02:11 PM - Forum: General Coding Help - Replies (2)

I have the same problem as Sylas has described although I am not interested what a bad magic number is unless the information leads to a solution.
I ..... More

Print this item

  Go/Weiqi/Baduk set
Posted by: metulburr - Oct-21-2018, 01:58 PM - Forum: Bar - Replies (2)

Sometimes i get the urge to make physical objects. An urge that programming cannot itch. I made a home made go set because i didnt want to cough up 14..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My First App 1 hour ago BCopeland64 carlbidwell Code Review
  what does % stand for in ... 2 hours ago arbiel carlbidwell General Codin...
  Unable to resolve FileNot... 8 hours ago llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... Yesterday, 17:13 RonR noisefloor GUI
  Is the interpreter that c... Yesterday, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... Yesterday, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... Yesterday, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... Yesterday, 03:53 justaguy SprunkiRetake Networking
  My goal to be hired worki... Yesterday, 00:32 GnomeSweetGnome GnomeSweetGnome News and Disc...
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
  pip install requests does... 09-24, 14:48 misodca DeaD_EyE General Codin...
Most views
  The best Prog... 577098
  Tutorial Requ... 499951
  Web Scraping ... 440826
  Newbie with P... 384819
  New Users Int... 368992
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+ 12088
buran 8176
snippsat 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
chaoh1911 Today
KaydenJonah098 Today
carlbidwell Today
llarkin6 Yesterday
Xuitar Yesterday

User Panel Messages

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