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,237
» Latest member: alexmaarley8855
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 48 online users.
» 1 Member(s) | 41 Guest(s)
Bing, Google, Facebook, snippsat

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: noisefloor
11 hours ago
» Replies: 3
» Views: 82
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 94
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 68
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 101
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,048
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,364
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,554
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 184
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,195
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,442

 
  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

  Separating Names & Counting
Posted by: Steven5055 - Nov-03-2022, 05:43 AM - Forum: Homework - Replies (7)

Hi,
I'm doing a Uni course & I'm a bit stuck & would appreciate some help please.

I have a column in a data frame that contains data as per below ..... More

Print this item

  Ver 3.11 installed but not in path
Posted by: omar - Nov-02-2022, 08:48 PM - Forum: General Coding Help - Replies (3)

I installed node.js. This asked me to install chocolaty (I think that's what it's called). This in turn decided to install Python 3.11.

I looked in..... More

Print this item

  Debugger
Posted by: azizrasul - Nov-02-2022, 08:04 PM - Forum: General Coding Help - Replies (6)

I am using PyCharm to run my Python code.

When I place a breakpoint on a line, the whole code runs through to the end? What can I be doing wrong. ..... More

Print this item

  QLineEdit Caret (Text Cursor) Transparency
Posted by: malonn - Nov-02-2022, 07:02 PM - Forum: GUI - Replies (5)

I noticed that if I set the background color of a QLineEdit, the caret (text cursor) becomes invisible. Setting the foreground color..... More

Print this item

  python extract
Posted by: mg24 - Nov-02-2022, 01:37 PM - Forum: General Coding Help - Replies (1)

Hi Team,

I am calling a stored procedure , and it is giving me output of 20 columns and 16 records below it.
result = cursor.fetchall()

my requ..... More

Print this item

  loop, graph
Posted by: master_graf - Nov-02-2022, 01:28 PM - Forum: General Coding Help - No Replies

Hi, everyone
I have list with data for graph (image below) like this [['1.9078244', '0.49999094'], ...] where the first argument is x, and the secon..... More


Attached Files

.txt   alpha.txt (Size: 190.91 KB / Downloads: 213)
Print this item

  Define Variable
Posted by: xinyulon - Nov-02-2022, 12:32 PM - Forum: General Coding Help - Replies (5)

Hi,

I have been wondering for long that what's is the difference between the two definitions of "Tax =0"? One is "tax = 0" defined at the foremost; ..... More

Print this item

  For Loop
Posted by: siddharth - Nov-02-2022, 08:33 AM - Forum: News and Discussions - Replies (1)

Hi,

I have a for loop program for which want result.

Program:
[python]
prices = [10,20,30]
total = 0
for price in prices:
total += pric..... More


Attached Files

Thumbnail(s)
   
Print this item

  how to merge 2 handlers pyTelegramBotApi
Posted by: lolita7777 - Nov-02-2022, 06:19 AM - Forum: General Coding Help - Replies (2)

Please write how to run these 2 functions depending on message.text. For example, if message.text== from 1 to 10 and the letter “v” then let the 1-fun..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 11 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578682
  Tutorial Requ... 509108
  Web Scraping ... 441840
  Newbie with P... 385791
  New Users Int... 375048
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
alexmaarley8855 Yesterday
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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