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,274
» Latest member: SavingSquirrel199835
» Forum threads: 38,788
» Forum posts: 175,860

Full Statistics

Online Users
There are currently 27 online users.
» 0 Member(s) | 23 Guest(s)
Bing, Google, Applebot

Latest Threads
link variable to exc bloc...
Forum: General Coding Help
Last Post: Astrobert
5 hours ago
» Replies: 0
» Views: 41
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
7 hours ago
» Replies: 2
» Views: 139
best way to learn python
Forum: News and Discussions
Last Post: mamta25
10 hours ago
» Replies: 5
» Views: 3,065
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-17-2025, 10:27 PM
» Replies: 3
» Views: 193
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 179
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Nov-17-2025, 08:44 AM
» Replies: 2
» Views: 138
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 185
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 360
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 76
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 380

 
  Horse race game
Posted by: Moreal - Sep-20-2020, 06:56 PM - Forum: General Coding Help - Replies (1)

Hey, I am creating a "horse race" game for a class project. So I have to simulate 16 random numbers, and the player has to guess the 5 firsts. So he c..... More

Print this item

  Help with define a def function
Posted by: Omer_ - Sep-20-2020, 06:25 PM - Forum: General Coding Help - Replies (3)

Hi,
I have this code:
[python]
ordinal = ['2nd','3rd','4th','5th','6th','7th','8th','9th','10th','11th','12th']

ratio = [1.222223, 1.25, 1.33,4...... More

Print this item

  Invalid Syntax error
Posted by: Dave1835 - Sep-20-2020, 06:23 PM - Forum: General Coding Help - Replies (2)

I have updated the code and added the capability to calculate multiple rings but keep getting a syntaxerror on the last line. Any suggestion welcome. ..... More

Print this item

  Inelegant code!
Posted by: howdey57 - Sep-20-2020, 05:31 PM - Forum: Code Review - Replies (2)

I hope it's ok to ask for what may be basic help. I am a hobbyist and newish to Python, but used to code in COBOL many years ago. I'd like some help o..... More

Print this item

  possible scores
Posted by: 3Pinter - Sep-20-2020, 02:55 PM - Forum: Data Science - No Replies

Guys,

Got myself a nerdy thing going on: I want to get all possible scores given a set parameters.

you play 24 games which can either win or los..... More

Print this item

  argparse --help in one line.
Posted by: Denial - Sep-20-2020, 02:28 PM - Forum: General Coding Help - Replies (1)

Hello

Following is the part of my code:
[python]help_msg = 'Encode video file(s) recursively to HEVC 10Bit.'
parser = arg..... More

Print this item

  Counting the most relevant words in a text file
Posted by: caiomartins - Sep-20-2020, 01:59 PM - Forum: General Coding Help - Replies (2)

I am totally fresh to Python and recently I have been struggling to read a text file. As a personal studying project.

I have "built" this code base..... More

Print this item

  Decoder++ for decoding and encoding data
Posted by: bytebutcher - Sep-20-2020, 12:05 PM - Forum: Code sharing - Replies (2)

I made a pyqt gui application for encoding/decoding data. The source code can be found at https://github.com/bytebutcher/decoder-plus-plus.

[img]ht..... More

Print this item

  Dictionary list
Posted by: coja56 - Sep-20-2020, 11:56 AM - Forum: General Coding Help - Replies (7)

Create a list called menu, which should contain at least 4 items in the
cafe.
● Next, create a dictionary called stock, which should contain the sto..... More

Print this item

  Extract the categorial variables of a DataFrame
Posted by: Tut - Sep-20-2020, 09:12 AM - Forum: Data Science - Replies (1)

Hi everyone,

I am quite a begginer using Python , and I am struggling to extract the categorical variables (the columns) of my df that contain 6 o..... More

Print this item

  Create a sequential number (counter) and reset at each duplicate
Posted by: Mekala - Sep-20-2020, 05:02 AM - Forum: General Coding Help - No Replies

Hi,
I want to assign serial number but reset at repeating row
I use the below code, but I am not achieving the desired output.

[python]import pa..... More

Print this item

  list1 position = list 2?
Posted by: Nickd12 - Sep-20-2020, 03:46 AM - Forum: General Coding Help - Replies (4)

lets say I have two lists
list1 = [1, 2, 3, 4, 5]
list2 = [6, 7, 8, 9, 10]

say list 1 position 0 is an input so the number 1
I want to return list ..... More

Print this item

  Python Gonna Be King...
Posted by: ATARI_LIVE - Sep-20-2020, 02:16 AM - Forum: Bar - Replies (2)

Nice... check it out. (video youtube) it's about the Python:
http[url=https://python-forum.io/thread-29791.html]..... More

Print this item

  chkFile with absolute paths
Posted by: JarredAwesome - Sep-20-2020, 01:18 AM - Forum: General Coding Help - Replies (7)

Hey everyone,

Here is a function I made to check if files exist.
[code]
def chkFile(filesPath):
if hasattr(filesPath, "__len__"):
for i in ..... More

Print this item

  Question about fft
Posted by: m3atwad - Sep-20-2020, 01:06 AM - Forum: Data Science - No Replies

Hello,

New poster here. I apologize if this is a dumb question, but I'm trying to find some confirmation (or falsification) regarding my loose unde..... More

Print this item

  Homework with python
Posted by: Johnsonmfw - Sep-20-2020, 12:05 AM - Forum: Homework - Replies (1)

It’s a two part question. I’ve figured out the first section but struggling with the second part.

Given 2 inputs, data and shape, construct a tens..... More

Print this item

  [tkinter] not getting checkbutton value when clicked
Posted by: OogieM - Sep-19-2020, 09:05 PM - Forum: GUI - Replies (5)

I'm working on a larger program where I have a series of checkbuttons that will be used to determine which field to display in another frame in the wi..... More

Print this item

  Having a hard time conceptualizing how to print something
Posted by: MysticLord - Sep-19-2020, 07:27 PM - Forum: General Coding Help - Replies (6)

I have a table of bytes (actually they're bit flags, but one concept at a time), as below.
[code]
FB 2C D2 93 40 00 00 00 00 00 00 00 EA C8 61 00
F9 ..... More

Print this item

  Car game for Reinforcement Learning (CaRL)
Posted by: MadS123 - Sep-19-2020, 03:45 PM - Forum: Code sharing - No Replies

Hi,

Over the past couple months (actually year), I was working on a car game for reinforcement learning, called CaRL. Since this project is in a v..... More

Print this item

  python 3 dns lookup private domain
Posted by: didact - Sep-19-2020, 01:52 PM - Forum: General Coding Help - Replies (1)

[font=Arial, Helvetica, sans-serif]Hi everyone, I'm new to Python and new to this site so I apologize if this question has been asked and answered bef..... More

Print this item

  How to use subprocess to get multiple data outputs in desired folder?
Posted by: 3SG14 - Sep-19-2020, 01:22 PM - Forum: General Coding Help - Replies (1)

HI,

I am using subprocess to automate my Trnsys simulation for multiple inputs.

The problem I am having is each run should produce multiple resu..... More

Print this item

  PyAudio [Errorno -9999] Unanticipated Host Error
Posted by: iMuny - Sep-19-2020, 01:18 PM - Forum: General Coding Help - Replies (5)

Hello,

I hope everyone is doing well. I have been using pyaudio for quite some time now, however, recently it stopped working and throwing me an OS..... More

Print this item

  File structure
Posted by: macfanpl - Sep-19-2020, 01:13 PM - Forum: General Coding Help - Replies (12)

General question: when creating *.py files whats the order of things in file?

1. Imports, class, methods, instructions,
2. Imports, Class, additio..... More

Print this item

  socket.accept() no longer works
Posted by: somewan - Sep-19-2020, 12:40 PM - Forum: Networking - No Replies

Hi everyone,

I have been for some time developing a honeypot which one of its functions is to detect por scanning in the local network. This funciona..... More

Print this item

  Dissaperaing window
Posted by: MrEmEs - Sep-19-2020, 12:38 PM - Forum: General Coding Help - Replies (3)

Hi,
I started learning Python today, so please don't hate me Naughty

I wrote a simple script:
[python]print("Hello_world")

input("\n\nPr..... More

Print this item

  Regex: positive lookbehind
Posted by: Secret - Sep-19-2020, 10:36 AM - Forum: General Coding Help - Replies (2)

Hi

I am new to Python. I have used regex in Uipath but when I transferred my regex expression to Python it doesn't seem to work. I get error "NoneT..... More

Print this item

  How to reset row value in pandas
Posted by: Mekala - Sep-19-2020, 09:36 AM - Forum: General Coding Help - No Replies

Hi,
I have below dataframe:

df
[python]ID Grp subGrp Rank SNO
A.1 A.0 A S 1
A.2 A.0 A S 1
A.2 A.0 A N ..... More

Print this item

  creating right click app in python
Posted by: Omer_ - Sep-19-2020, 08:44 AM - Forum: General Coding Help - No Replies

Hello there,
I'm new to python and I wanted to know if the idea I'm thinking of is possible to make with python:

Is it possible to create an app t..... More

Print this item

  Do I need to make a virtual environment?
Posted by: Pedroski55 - Sep-19-2020, 08:43 AM - Forum: General Coding Help - Replies (5)

I run Ubuntu 18.04

I read I can create a "virtual environment" for Python 3 with:

[quote]python3 -m venv /path/to/new/virtual/environment[/quote..... More

Print this item

  can someone explain what I need to do here?
Posted by: pedicurecurator - Sep-19-2020, 05:30 AM - Forum: Homework - Replies (2)

1. (a) Trace (by hand) the execution of the following Python program by completing
the trace table below. For Each line of code (as labelled with lin..... More

Print this item

  Help Getting Started - Optimisation Problem
Posted by: lummers - Sep-19-2020, 04:05 AM - Forum: General Coding Help - Replies (1)

Hi all

I am getting stuck having searched for about an hour through various forums, Stack oveflow posts and online articles!

I have a simple CSV..... More

Print this item

  Good free textbooks/pdf's for Beginners
Posted by: jonnie763 - Sep-19-2020, 03:43 AM - Forum: News and Discussions - Replies (2)

Hi, I started python coding about 2-3 weeks ago, and I am looking for a good textbook to aid in my studies. The class I am taking is using this https:..... More

Print this item

  performs the search without pressing enter or a key
Posted by: forumpy - Sep-19-2020, 02:56 AM - Forum: General Coding Help - Replies (3)

i need help, I want to create a python search engine that will search for clients' names (from a sqlite3 database and display them on the Treeview obj..... More

Print this item

  Off subject (sort of) about PgAdmin4
Posted by: Larz60+ - Sep-19-2020, 02:04 AM - Forum: Bar - No Replies

I have PostgreSQL up an running, and have several databases that I implemented using psql.
I decided that life might be easier if I started using PgA..... More

Print this item

  list vs [] with range
Posted by: quazirfan - Sep-19-2020, 01:21 AM - Forum: General Coding Help - Replies (5)

Hello, I am just learning python so bear with me.

I am trying to figure out why the output of the following two lines are different despite both o..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  link variable to exc bloc... 5 hours ago Astrobert Astrobert General Codin...
  PyQt6 QWidgets and system... 7 hours ago stevecoh1 Axel_Erfurt GUI
  best way to learn python 10 hours ago dutch mamta25 News and Disc...
  Graph Interpolate Difficu... 11-17, 22:27 Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
Most views
  The best Prog... 579122
  Tutorial Requ... 511424
  Web Scraping ... 442080
  Newbie with P... 386146
  New Users Int... 378572
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 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
SavingSquirrel199835 Yesterday
Astrobert Yesterday
DataScientist071 Yesterday
aminrony1999 11-17
fobby888 11-17

User Panel Messages

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