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,530
» Latest member: AlexanderJack
» Forum threads: 38,661
» Forum posts: 175,191

Full Statistics

Online Users
There are currently 369 online users.
» 0 Member(s) | 363 Guest(s)
Bing, Yandex, Google, Baidu

Latest Threads
Qt Event Filtering
Forum: GUI
Last Post: deanhystad
2 hours ago
» Replies: 3
» Views: 112
processing nested json da...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
4 hours ago
» Replies: 1
» Views: 81
Convert .pdf to .txt
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:23 AM
» Replies: 7
» Views: 450
Trouble Importing cell2lo...
Forum: General Coding Help
Last Post: snippsat
Jul-12-2025, 04:00 PM
» Replies: 3
» Views: 246
Why is bool() an instance...
Forum: General Coding Help
Last Post: deanhystad
Jul-12-2025, 02:41 AM
» Replies: 5
» Views: 241
[SOLVED] Why does regex f...
Forum: General Coding Help
Last Post: Pedroski55
Jul-11-2025, 11:52 PM
» Replies: 7
» Views: 3,993
Custom Sorting List of Di...
Forum: Homework
Last Post: Larz60+
Jul-11-2025, 03:34 PM
» Replies: 1
» Views: 154
Coding Standards
Forum: General Coding Help
Last Post: snippsat
Jul-11-2025, 01:12 PM
» Replies: 2
» Views: 227
Make code run faster: poi...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:24 AM
» Replies: 3
» Views: 770
Cleaning my code to make ...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:20 AM
» Replies: 14
» Views: 4,348

 
  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: 234)
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

  prime numbers
Posted by: astral_travel - Nov-03-2022, 08:50 PM - Forum: General Coding Help - Replies (28)

i wrote this code:

[python]
user_input = int(input("choose a number: "))

a = range(2, user_input-1)

for x in a:
if user_input % x == 0:..... More

Print this item

  How to deactivate correctly a conda environment
Posted by: NoNameoN - Nov-03-2022, 03:18 PM - Forum: General Coding Help - Replies (2)

Hello everybody i'm trying to deactivate correctly my conda environment that is setted by default in every terminal session that i open.
As you can s..... More

Print this item

  ANSI not working for change of text colors
Posted by: BliepMonster - Nov-03-2022, 03:06 PM - Forum: General Coding Help - Replies (10)

Hello,

I tried to change the text color in my python program, and looked up a tutorial. When I typed in what they wrote, it just printed: '[2;31;43..... More

Print this item

  Openpyxl manipulate excel write formula
Posted by: SamLiu - Nov-03-2022, 11:31 AM - Forum: General Coding Help - No Replies

Hi all,
I have a demo about calculated each score with target gap as attached, formula is : ='Log'!C3-'Log'!C$2, ='Log'!C4-'Log'!C$2, ='Log'!C5-'Log'..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Qt Event Filtering 2 hours ago deanhystad deanhystad GUI
  processing nested json da... 4 hours ago Kumo_Koloo Pedroski55 Web Scraping ...
  Convert .pdf to .txt Yesterday, 11:23 vmars316 Pedroski55 General Codin...
  Trouble Importing cell2lo... 07-12, 16:00 haileyp snippsat General Codin...
  Why is bool() an instance... 07-12, 02:41 voidtrance deanhystad General Codin...
  [SOLVED] Why does regex f... 07-11, 23:52 Winfried Pedroski55 General Codin...
  Custom Sorting List of Di... 07-11, 15:34 aryasinner Larz60+ Homework
  Coding Standards 07-11, 13:12 kency snippsat General Codin...
  Make code run faster: poi... 07-11, 07:24 Bennygib FrankBuckland General Codin...
  Cleaning my code to make ... 07-11, 07:20 BSDevo FrankBuckland General Codin...
  Data cleaning help 07-11, 07:18 ClimbAddict FrankBuckland General Codin...
Most views
  The best Prog... 572684
  Tutorial Requ... 485699
  Web Scraping ... 437136
  Newbie with P... 380062
  Thread remain... 351369
Most reputation
buran 581
snippsat 507
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+ 12073
buran 8174
snippsat 7351
deanhystad 6855
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
AlexanderJack Today
ramzi_romdhan Today
Kunalmalik126 Today
Kumo_Koloo Yesterday
tomanadoveza Yesterday

User Panel Messages

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