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,387
» Latest member: zashleyfracesz3221
» Forum threads: 38,820
» Forum posts: 176,016

Full Statistics

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

Latest Threads
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
7 minutes ago
» Replies: 7
» Views: 135
IP address for users
Forum: Networking
Last Post: itx_sumeet
5 hours ago
» Replies: 4
» Views: 7,055
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
10 hours ago
» Replies: 5
» Views: 9,871
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 129
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 73
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 132
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,288
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 96
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 751
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 162

 
  How to run code again in module ?
Posted by: rajamani - Nov-09-2022, 02:42 AM - Forum: General Coding Help - Replies (2)

Hi all,
I'm a new to python and coding.

How to run back the code when a user chooses an option ?

- the code i have currently-
[python]
print..... More

Print this item

  python multiple try except block in my code -- can we shorten code
Posted by: mg24 - Nov-08-2022, 07:18 PM - Forum: General Coding Help - Replies (10)

Hi Team,

I am new in python, used functional programming, not perfect in oop concept yet.

In below task I have used try except block for handlin..... More

Print this item

  Basic SQL query using Py: Inserting or querying sqlite3 database not returning data
Posted by: marlonbown - Nov-08-2022, 07:03 PM - Forum: General Coding Help - Replies (3)

Hello, can someone assist here please:
When I run the program below, I expect table to be created and record inserted into the database.
However whe..... More

Print this item

Star python exception handling handling .... with traceback
Posted by: mg24 - Nov-08-2022, 06:17 PM - Forum: General Coding Help - Replies (3)

Hi Team,

I am using below code getting error message.
But I want error properly line by line. I wan to print that error properly line by line.

..... More

Print this item

  Another program runs
Posted by: bho68 - Nov-08-2022, 05:07 PM - Forum: General Coding Help - Replies (7)

I am JUST learning Python. In my learning, I wrote a Rock, Paper Scissors program. It worked great.

BUT... Now when I am trying to write other pr..... More

Print this item

  Messagebox
Posted by: rturus - Nov-08-2022, 03:33 PM - Forum: General Coding Help - Replies (8)

Why can't I see the messagebox when input is not a, b, or c? I am sure there is a good reason but I guess I can't find out yet.

Thanks.

[python..... More

Print this item

Sad Python classes
Posted by: PythonNewbee - Nov-08-2022, 02:00 PM - Forum: General Coding Help - Replies (4)

Hi People

I have some difficulty with classes in Python.
I want to call a method, belonging to class A, from class B. I looked at online examples ..... More


Attached Files

.py   agent5.py (Size: 3.36 KB / Downloads: 265)
Print this item

  Implementing a Lowpass Filter
Posted by: Madridista - Nov-08-2022, 12:07 PM - Forum: Data Science - Replies (5)

I have data from a IMU Sensor. I have file an Excelfile samplesdata where the data of the IMU Sensor is export. In samplesdata There is ..... More

Print this item

Question Unwanted execution of unittest
Posted by: ThomasFab - Nov-08-2022, 10:12 AM - Forum: General Coding Help - Replies (9)

Hi Guys,

I`m trying to learn unit testing with the unittest libary.


I have created this modules:

Print this item

  Print phenomenon
Posted by: DPaul - Nov-08-2022, 10:11 AM - Forum: Bar - Replies (8)

Hi,
I came across a "bug" that was hard to find.
Found it, but found no good explanation of the why.
[python]
try:
do_stuff_1
Print(resul..... More

Print this item

  openpyxl convert data to float
Posted by: jacklee26 - Nov-08-2022, 05:20 AM - Forum: General Coding Help - Replies (13)

i have problem-related with excel, it seems like convert from txt to excel the data is a string not float. Is there any solution to convert it to floa..... More


Attached Files

Thumbnail(s)
   
Print this item

  python move folders and subfolders not working
Posted by: mg24 - Nov-08-2022, 12:06 AM - Forum: General Coding Help - Replies (5)

Hi Team,

I am trying to move folders and subfolders. from one location to another.
I want to override folders.

getting error :
raise Error("De..... More

Print this item

  a bunch of modules to import
Posted by: Skaperen - Nov-07-2022, 07:16 PM - Forum: General Coding Help - Replies (2)

i have a bunch of modules to import. their names are created by some code that uses a number in range(10,301) to make them. what is the most practic..... More

Print this item

  Please check whether the code about the for loop question is correct. (SyntaxError)
Posted by: lilliancsk01 - Nov-07-2022, 03:22 PM - Forum: Homework - Replies (10)

print('\n'.join(f'{":".join(str(n)[-1]
for l in range(int(l/2+.5)))}{"" if l%2 else ":"}'
for n, l in (lambda n: ((l, n)
for l in range(n)))(int(in..... More

Print this item

  How does open context manager work?
Posted by: deanhystad - Nov-07-2022, 02:21 PM - Forum: General Coding Help - Replies (7)

While answering a question in another thread I wrote this:
[python]import contextlib

@contextlib.contextmanager
def CreateFile(FilePath):
file =..... More

Print this item

  How to properly scale text in postscript conversion to pdf?
Posted by: philipbergwerf - Nov-07-2022, 09:06 AM - Forum: General Coding Help - Replies (3)

Hi all,

I have a question about Ghostscript postscript2pdf conversion. My setup is:

  • drawing a drawing with text on the tkinter canvas..... More

Print this item

  itertools and amazing speed
Posted by: Pedroski55 - Nov-07-2022, 04:59 AM - Forum: General Coding Help - Replies (8)

From the thread about getting random sets of image names we had 24 image names:

images = ['im1', 'im2', 'im3', 'im4', 'im5', 'im6', 'im7', 'im8',
..... More

Print this item

  I need some clarity on the use of the open command
Posted by: JonWayn - Nov-07-2022, 01:36 AM - Forum: General Coding Help - Replies (11)

I am looking at some code someone else wrote in which open is used then again on the same file that is already open. In VB, another language I use, so..... More

Print this item

  How to update score value?
Posted by: Mavoz - Nov-07-2022, 01:04 AM - Forum: Homework - Replies (5)

Hi, We're in a beginner Python class and creating text adventure games.
We want to be able to update the score during the game.

We've tried someth..... More

Print this item

  Number of documents processed counter in Flask API
Posted by: erotavlas - Nov-07-2022, 12:43 AM - Forum: Web Scraping & Web Development - Replies (1)

I'm creating a document processing website and the backend is in python using Flask API. I wanted a counter on the bottom of the front end page (in R..... More

Print this item

  Getting a URL from Amazon using requests-html, or beautifulsoup
Posted by: aaander - Nov-06-2022, 10:16 PM - Forum: Web Scraping & Web Development - Replies (1)

I'm new to scraping and am working on a scraper, I'm trying to figure out how to pull a URL from the src of this line of HTML:

<img alt="Bube Dame Kö..... More

Print this item

  how to check if someone send a message in a discord channel?
Posted by: Zerolysimin - Nov-06-2022, 03:37 AM - Forum: General Coding Help - Replies (1)

check the message, then copying the message

Print this item

  Pygame player spawn
Posted by: Yegor123 - Nov-05-2022, 10:07 PM - Forum: General Coding Help - No Replies

Im making a game and player spawn is off Ive tried tutorials other forums stack overflow and I havent found anything here is a photo and my code
[pyt..... More


Attached Files

Thumbnail(s)
   
Print this item

  Appending a row of data in an MS Excel file
Posted by: azizrasul - Nov-05-2022, 08:27 PM - Forum: General Coding Help - Replies (3)

I have the following working code which amalgamates excel file data into one Excel file. How do I amend the code so that I do not have an index column..... More

Print this item

  Animate the midpoints of a 3d “Rhombic dodecahedron”
Posted by: Beck_Johnson - Nov-05-2022, 04:18 PM - Forum: General Coding Help - No Replies

I need help in animating a Rhombic dodecahedron. I want to enlarge and to shrink the midpoints (center points) with FuncAnimation from Matplotlib. I w..... More

Print this item

  asyncio byte data transfer
Posted by: gary - Nov-05-2022, 03:01 PM - Forum: Networking - Replies (5)

I found the below code from my search on the web. The code provides a sample for server implementation using asyncio

[python]
import asyncio
asyn..... More

Print this item

  Increase df column values decimals
Posted by: SriRajesh - Nov-05-2022, 02:43 PM - Forum: Data Science - Replies (2)

Hi,
I have below datframe with numerical column marks
df:
[python]name age marks
A 14 12.34
B 12 34.1
C 29 19.567
[/pyt..... More

Print this item

  Async API request and NTLM authentication
Posted by: himanshuj89 - Nov-05-2022, 02:06 PM - Forum: News and Discussions - No Replies

Hello everyone,

I want to hit APIs asynchronously along with NTLM authentication. Could you please suggest the best way to do so?

What I have t..... More

Print this item

  random interger array question
Posted by: rpang - Nov-05-2022, 07:34 AM - Forum: Homework - Replies (3)

I being ask to create a random integer array with the info below:

[b]● Create two random integer array of values 0 to 14 of size ten called x and y..... More

Print this item

  question about loops
Posted by: rpang - Nov-05-2022, 07:19 AM - Forum: Homework - Replies (7)

Hi,

Sorry I am quite new in python, I have a question and i was wondering if anyone can help me?

question below:
[b][color=#F1C40F]Create a fun..... More

Print this item

  Am I wrong or is Udemy wrong? String Slicing!
Posted by: Mavoz - Nov-05-2022, 12:50 AM - Forum: General Coding Help - Replies (3)

Hi,
I'm using the 2022 Complete Python Bootcamp From Zero to Hero in Python course.
It features a series of test excercises..but I am getting errors..... More

Print this item

  rename same file names in different directories
Posted by: elnk - Nov-04-2022, 05:23 PM - Forum: General Coding Help - Replies (5)

I have a directory which has 10 other dirs with many files:

- directory
- dir1
- dir2
- dir3
- ...

How can i rename duplicate files ..... More

Print this item

  python Multithreading on single file
Posted by: mg24 - Nov-04-2022, 12:35 PM - Forum: General Coding Help - Replies (3)

Hi Team,

I want to use multi threading. on single csv files.


task one ----> create gzip of csv files
task two ------> Checksum no.generate ch..... More

Print this item

  'dict()' Has an Exception?
Posted by: htran3 - Nov-04-2022, 07:43 AM - Forum: General Coding Help - Replies (2)

Hey guys, please let me know if you have an answer to this (copy and paste into your IDE):
[python]x = {
0: "value 0",
1: "value 1",
2..... More

Print this item

  Regarding how to randomizing list with having equal probability
Posted by: radraw - Nov-04-2022, 05:44 AM - Forum: General Coding Help - Replies (14)

Hi I have doubt regarding randomizing images with equal probability.

I have 24 images and I want to generate 150 sets of 9 images from the 24 image..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Calling python from anoth... 7 minutes ago eedjsa eedjsa General Codin...
  IP address for users 5 hours ago Robots itx_sumeet Networking
  Lottery generator (beginn... 10 hours ago Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
Most views
  The best Prog... 580342
  Tutorial Requ... 518899
  Web Scraping ... 442762
  Newbie with P... 386944
  New Users Int... 386091
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
zashleyfracesz3221 Today
itx_sumeet Today
zaathonyshulze4201 Today
Michaelhauct Yesterday
eedjsa Yesterday

User Panel Messages

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