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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,308
» Latest member: NeoQuant
» Forum threads: 38,799
» Forum posts: 175,913

Full Statistics

Online Users
There are currently 40 online users.
» 0 Member(s) | 36 Guest(s)
Apple, Bing, Google

Latest Threads
Trading Risk management s...
Forum: Code sharing
Last Post: Axel_Erfurt
17 minutes ago
» Replies: 1
» Views: 14
No new line from print in...
Forum: General Coding Help
Last Post: snippsat
5 hours ago
» Replies: 8
» Views: 210
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
10 hours ago
» Replies: 3
» Views: 11,103
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 10:44 AM
» Replies: 4
» Views: 183
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 04:44 AM
» Replies: 8
» Views: 706
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,822
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 175
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 152
My regex function is not ...
Forum: General Coding Help
Last Post: perfringo
Nov-26-2025, 08:47 AM
» Replies: 3
» Views: 244
best way to learn python
Forum: News and Discussions
Last Post: ichsanputr
Nov-26-2025, 04:40 AM
» Replies: 6
» Views: 3,227

 
  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

  xml element inside text node
Posted by: SgtPembry - Oct-21-2018, 01:37 PM - Forum: General Coding Help - Replies (9)

Hi,

I try to get this xml code…

<root>
<action>The guy enters the room and <bold>Slam!</bold> shuts the door.</action>
</root>

built from a..... More

Print this item

  flipping the for loop in file
Posted by: juniorcoder - Oct-21-2018, 09:41 AM - Forum: General Coding Help - Replies (2)

Hello friends ,
I save the output of my python code in a txt. file . In this file I have many variables , like x[t][m]...y[t][m]...I[t][m].
For anot..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Trading Risk management s... 17 minutes ago NeoQuant Axel_Erfurt Code sharing
  No new line from print in... 5 hours ago Lou snippsat General Codin...
  Python Online Compiler 10 hours ago alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... Yesterday, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... Yesterday, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
  best way to learn python 11-26, 04:40 dutch ichsanputr News and Disc...
  data fetching for indian ... 11-25, 02:50 drakhsin Pedroski55 Web Scraping ...
Most views
  The best Prog... 579487
  Tutorial Requ... 512765
  Web Scraping ... 442358
  Newbie with P... 386395
  New Users Int... 381692
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12113
buran 8196
snippsat 7393
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
NeoQuant Today
Hosthubac Today
ifdainstitute7 Today
MOHAMMAD_mk Today
virvainfotech Today

User Panel Messages

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