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,261
» Latest member: SledgeNE
» Forum threads: 38,787
» Forum posts: 175,848

Full Statistics

Online Users
There are currently 56 online users.
» 0 Member(s) | 52 Guest(s)
Bing, Google, AOL, AOL

Latest Threads
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
1 hour ago
» Replies: 1
» Views: 36
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 1
» Views: 38
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
2 hours ago
» Replies: 5
» Views: 301
How to make ball stay wit...
Forum: General Coding Help
Last Post: SledgeNE
10 hours ago
» Replies: 1
» Views: 71
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 11:31 PM
» Replies: 0
» Views: 35
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Yesterday, 06:38 PM
» Replies: 0
» Views: 65
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:02 PM
» Replies: 10
» Views: 254
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 03:33 PM
» Replies: 3
» Views: 127
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 215
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 404

 
  len(row) does not count rows correctly
Posted by: quest_ - Jan-22-2021, 11:35 PM - Forum: General Coding Help - Replies (3)

Hello,

I have this code script:
[python]
triplets = tuple(itertools.product((0, 1), repeat = 2))
freq = []
sums = {}
for row in newlist2:
print(..... More

Print this item

  [PyGTK] How to center text on multi-line buttons?
Posted by: Lomax - Jan-22-2021, 11:25 PM - Forum: GUI - Replies (3)

Title pretty much says it all; if I make a button in GTK with a text label that has line-break(s) in it, the text on the label ends up being left alig..... More

Print this item

  Request for [PyGTK] or [GTK] prefix in GUI forum
Posted by: Lomax - Jan-22-2021, 11:09 PM - Forum: News and Discussions - Replies (2)

I am the only one building Python GUI apps with GTK3? Surely not! Or have I missed something? Undecided

Print this item

  MP3 Tags to Excel Not working
Posted by: giddyhead - Jan-22-2021, 09:16 PM - Forum: General Coding Help - Replies (5)

Hello,

I have been trying for a while now to have the MP3 Tags from the song files added to an excel spreadsheet. When I use the gettags[0] in the..... More

Print this item

  Making new lines of code
Posted by: AvioxyYT - Jan-22-2021, 06:25 PM - Forum: General Coding Help - Replies (1)

Hi there!

Sorry about the lame question but I just started using python and am wondering how to make a new line like
this without it running the code..... More

Print this item

  Virtual environment and upgrading python 3.5 to 3.9
Posted by: NeilUK - Jan-22-2021, 05:34 PM - Forum: General Coding Help - Replies (4)

I have python 3.5.2 with a single virtual environment on linux mint 18, which also has a system 2.7.12. I have installed a number of packages using pi..... More

Print this item

  Python Doubt
Posted by: csrlima - Jan-22-2021, 05:23 PM - Forum: General Coding Help - Replies (5)

Hi , i need some help in python script :
Im receiveing data from USB0 of my Raspberry Pi and for now , with my python script i can print all data . W..... More

Print this item

  sorting alphanumeric values in a human way
Posted by: idiotonboarding - Jan-22-2021, 04:37 PM - Forum: General Coding Help - Replies (3)

So simple question, I could make it work in a lambda probably but my experience is limited and I suspect there may already be a built in to do what I ..... More

Print this item

  I have two Same Code but One of them Doesnt Work
Posted by: beginner721 - Jan-22-2021, 04:32 PM - Forum: General Coding Help - Replies (6)

Hello everyone.. I have a problem
I have two Same Code but One of them Doesnt Work

This is the one that doesnt work
[python]balance=1000
## 1= BALANC..... More

Print this item

  Hide source code from python process itself
Posted by: xmghe - Jan-22-2021, 04:07 PM - Forum: Web Scraping & Web Development - Replies (2)

If someone manages to hack my web application and/or the python interpreter itself, is it possible to prevent the python process from extracting its o..... More

Print this item

  Sublime Text
Posted by: TechNitium - Jan-22-2021, 03:38 PM - Forum: General Coding Help - Replies (4)

I am using sublime text but when I run/build it, my code just prints and isn't interactive so how do I run it through terminal.

Print this item

  convert List with dictionaries to a single dictionary
Posted by: iamaghost - Jan-22-2021, 02:28 PM - Forum: General Coding Help - Replies (3)

Hey guys,

i have a matrix with lots of zeroes. In order to make the code more efficient i want to write code, that takes the rows and colums as ind..... More

Print this item

  How do I end my while loop
Posted by: TechNitium - Jan-22-2021, 01:56 PM - Forum: General Coding Help - Replies (5)

[python]choice = input("")
c = ("enter")

while c != ("exit"):
if (choice) == (2):
new_entry()
c = ("enter")
#if you select optio..... More

Print this item

  How to update values in a pyarrow table?
Posted by: xraphael75 - Jan-22-2021, 01:29 PM - Forum: General Coding Help - Replies (1)

I have a python script that reads in a parquet file using pyarrow. I'm trying to loop through the table to update values in it. If I try this:

[pytho..... More

Print this item

  Working with Timestamp in Mulitindex
Posted by: krischanb - Jan-22-2021, 12:52 PM - Forum: General Coding Help - No Replies

Hi,
I imported a csv containing from three different temprature sensors values taken each 10 minutes. The point, where I am stuck right now is the Mu..... More

Print this item

  Filesystem folder size sort
Posted by: reggie4 - Jan-22-2021, 12:45 PM - Forum: General Coding Help - No Replies

Hi all,

I have a large number of videos in a large number of folders on a 4TB removable hard drive. I want to backup this 4TB to 4x1TB drives. The ..... More

Print this item

  Why do I get Syntax error?
Posted by: TechNitium - Jan-22-2021, 12:25 PM - Forum: General Coding Help - Replies (1)

[python]#getpass will hide what the person is typing during the password
import getpass

def new_entry():
#input the username and password and t..... More

Print this item

  TKinter restarting the mainloop when button pressed
Posted by: zazas321 - Jan-22-2021, 08:25 AM - Forum: GUI - Replies (7)

Hello. I have a complex program running in Python and I want to be able to interrupt it and restart the mainloop at any time I want.

I have made a ..... More

Print this item

Star Recursively convert nested dicts to dict subclass
Posted by: Alfalfa - Jan-22-2021, 02:37 AM - Forum: General Coding Help - Replies (1)

Context: Elegant solution needed to monitor and save database changes during runtime. To minimze IO, the solution should be based on signals ra..... More

Print this item

  Open a setup python file?
Posted by: Adlo777 - Jan-22-2021, 12:10 AM - Forum: Homework - Replies (2)

I recently downloaded the VSL compiler developed by Matthieu Amiguet (http://www.matthieuamiguet.ch/pages/compilateurs) to learn how to compile with P..... More

Print this item

  Trying to solve an exercise
Posted by: frafrog - Jan-21-2021, 10:59 PM - Forum: Homework - Replies (3)

Hello, I'm trying to solve this exercise from the book think python :
Exercise 9.6. Write a function called is_abecedarian that returns True if the l..... More

Print this item

  What book/course do you recommend for an "advanced" beginner?
Posted by: Edmond - Jan-21-2021, 09:31 PM - Forum: News and Discussions - Replies (3)

Hello! I'm teaching myself to code with the eventual goal of a career switch into data science (long term). I've started by reading books and watchi..... More

Print this item

  Object detection on ground via the use of geo/sat UAV images
Posted by: hobbyist - Jan-21-2021, 09:02 PM - Forum: General Coding Help - Replies (2)

Hello,

I have few UAV images and I am searching how to do 2 things.
1) Identify specific objects on ground and isolate these objects as new images
2)..... More

Print this item

  Simple longline function
Posted by: programerAnel - Jan-21-2021, 07:17 PM - Forum: Code Review - No Replies

Please guys don't tell me that I must use the save to path and load from path

[python]def reduce_image_size(dmy):
with open('MyTempImage.jpg'..... More

Print this item

  Cannot Assign right Answers To Shuffled Questions
Posted by: Boblows - Jan-21-2021, 06:50 PM - Forum: General Coding Help - Replies (6)

Hello guys,just started coding with python and come up with an idea of writing multiple choice exam wich shuffles the questions with random.shuffle i..... More

Print this item

  getpass.getpass error
Posted by: Juice1277 - Jan-21-2021, 06:49 PM - Forum: General Coding Help - Replies (3)

Hey guys I'm getting this error when trying to run my code. Anyway someone could help me out. Thanks!
Bellow is the command line trying to run th..... More

Print this item

  Where to add own python modules in WinPython?
Posted by: HinterhaeltigesSchlaengelchen - Jan-21-2021, 04:11 PM - Forum: General Coding Help - Replies (1)

i have a WinPython distribution decicated to a project that is used by multiple developers. I added all modules required for the project via WinPython..... More

Print this item

  .remove() from a list - request for explanation
Posted by: InputOutput007 - Jan-21-2021, 03:52 PM - Forum: General Coding Help - Replies (3)

Hi guys,

I am learning python and I came across a weird thing which is hard for me to find the cause of it.
Here is my code:
[python]
l = [1, 2,..... More

Print this item

  School project
Posted by: janivar91 - Jan-21-2021, 03:29 PM - Forum: Homework - Replies (3)

Hello. I'm struggling with a school project. I'm fairly new to Python, and I'm hoping for some great suggestions to solve my problem.

What I am try..... More

Print this item

  HELP! Importing json file into csv into jupyter notebook
Posted by: vilsef - Jan-21-2021, 01:34 PM - Forum: Data Science - Replies (2)

Im trying to access data for Magic the gathering to process it in a pandas dataframe using Jupyter Notebook.

The data is downloaded from this webs..... More

Print this item

  Function encapsulation
Posted by: Oldman45 - Jan-21-2021, 01:32 PM - Forum: General Coding Help - Replies (4)

I need help please.
I am trying to learm Python and work with Python 3.83.5 using How To Think Like A Computer Scientist as a guide. I am at Chapter..... More

Print this item

  Sorting data
Posted by: pprod - Jan-21-2021, 10:20 AM - Forum: General Coding Help - Replies (4)

Hello,

Suppose a regular expression that extracts, say, the characters below and outputs them in the following order:
A
B
C
D

My goal is to ..... More

Print this item

  Need help with code
Posted by: Devaraja - Jan-21-2021, 10:04 AM - Forum: Homework - Replies (3)

I have an assignement to make app that list songs lenght in seconds and then in minutes, but i don't know how to do it.
Here is what i have but obvio..... More

Print this item

  Behaviour of 2D array
Posted by: SimonB - Jan-21-2021, 09:48 AM - Forum: General Coding Help - Replies (6)

My intention is to populate a 2d array with booleans at a certain DENSITY. Although the function "populate" seems to do the right thing up to exiting ..... More

Print this item

  random fiber distribution for composite analysis
Posted by: pvdivakarraju - Jan-21-2021, 07:04 AM - Forum: General Coding Help - Replies (1)

how to generate random circles inside a square with a fraction of 60% as well as it should maintain periodicity(a portion of the circle going out at b..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  PermissionError: [Errno 1... 1 hour ago Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... 2 hours ago Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... 2 hours ago Skaperen DeaD_EyE News and Disc...
  How to make ball stay wit... 10 hours ago nathanael SledgeNE General Codin...
  conditional nested loops Yesterday, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... Yesterday, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue Yesterday, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... Yesterday, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 578987
  Tutorial Requ... 510609
  Web Scraping ... 442000
  Newbie with P... 386030
  New Users Int... 377203
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+ 12108
buran 8195
snippsat 7388
deanhystad 6912
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
SledgeNE Today
nathanael Yesterday
JamesFalkner Yesterday
stevecoh1 Yesterday
Bamboo Yesterday

User Panel Messages

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