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

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

Question Algorithmic problem
Posted by: Mhd45 - Nov-02-2022, 06:05 AM - Forum: Homework - Replies (3)

John and Alex like to watch cars passing by on the street. When the car drives past, both boys write down the types of cars in their notebooks. John i..... More

Print this item

  python insert blank line in logger
Posted by: mg24 - Nov-02-2022, 04:56 AM - Forum: General Coding Help - Replies (1)

Hi Team,

I am using below code , to generate logger.
code is working,

need help how to add\insert a blank line.in logger


[python]
import ..... More

Print this item

Question Triying to store values from models
Posted by: Larry1888 - Nov-01-2022, 09:37 PM - Forum: General Coding Help - Replies (1)

Hi all!

Im writing a ini file based on a excel file readed with pandas and the columns writted in the file gonna be different depending on [u]client ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Hierarchical logging in Python
Posted by: etuzon - Nov-01-2022, 05:44 PM - Forum: Code sharing - No Replies

[align=left]
The most used logging these days is logging that prints the logs a row under a row.
There are flows that will be hard to debug by kind ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Help with university work - reading and writing files
Posted by: MrKnd94 - Nov-01-2022, 04:27 PM - Forum: Homework - Replies (5)

Hello,

Me and a lot of my classmates are so confused in today's work.

The answer sheet was published, but that didn't help us at all.

Here'..... More

Print this item

  Need help choosing threading method
Posted by: Oolongtea - Nov-01-2022, 01:07 PM - Forum: GUI - Replies (5)

I'm coding a pyqt5 interface to exchange data with an arduino through serial communication.

Basically, the program sends a command, the arduino make..... More

Print this item

  Cant access variable from anywhere
Posted by: Frankduc - Nov-01-2022, 12:51 PM - Forum: General Coding Help - Replies (33)

Hello,

I think i am not asking the right question. I want to be able to acces the variable Z at the end of the script from the beginning.
Here's a..... More

Print this item

  python Checksum No
Posted by: mg24 - Nov-01-2022, 12:00 PM - Forum: General Coding Help - Replies (4)

Hi team

I am creating a checksum. using below code.
Code is working, My csv is 15gb.

hence I am reading data in chunk.
data = f.read(10240)..... More

Print this item

  extract last word from path.
Posted by: mg24 - Nov-01-2022, 09:13 AM - Forum: General Coding Help - Replies (4)

Hi Team,

how to get last word from path.
split and get last folder name.

path = "D:\Python\sample_folder\data"

Expected output ---> Data

..... More

Print this item

  What about Python 3.11 performance boost
Posted by: wavic - Nov-01-2022, 07:54 AM - Forum: News and Discussions - Replies (2)

Has anyone tested 3.11's widely announced performance boost?

I am eager to try it but my Arch still offers me 3.10.8-2

Print this item

  Fetching the port number using asyncio
Posted by: gary - Nov-01-2022, 02:53 AM - Forum: General Coding Help - No Replies

Below is the code for multisocket server interacting with client. Port Numbers are pre-assigned as 1000 to 4000 for clients
In the client thread func..... More

Print this item

  Initializing a Serializer in init and passing data later
Posted by: wolfman5874 - Nov-01-2022, 01:06 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi all I'm building a Forum/Subforum application in django where the Forum and Subforum both have their own models and their threads have their own mo..... More

Print this item

  Problem with importing python-telegram library into the project
Posted by: gandonio - Oct-31-2022, 10:34 PM - Forum: General Coding Help - Replies (1)

Hello. I'm having trouble importing the python-telegram library into my project. I installed it with the command pip install python-telegram, and the ..... More

Print this item

  line by line debugging in PyCharm Community
Posted by: astral_travel - Oct-31-2022, 04:18 PM - Forum: General Coding Help - Replies (2)

i was wondering (and been recommended by deanhystad) - is there a way to simulate the code process line by line in PyCharm ?

similar to what can be..... More

Print this item

  reading content between a specific xml tag
Posted by: saisankalpj - Oct-31-2022, 12:38 PM - Forum: General Coding Help - Replies (1)

I have a spml file as below:

[python]<?xml version="1.0" encoding="UTF-8"?>
<spml:batchresponse designation="software developers">

<response>



<po..... More

Print this item

  Assistance with a PHP-based project
Posted by: GenTorossi - Oct-31-2022, 07:55 AM - Forum: News and Discussions - Replies (3)

Hi, community
I'm about to start a Python-based project and need a team to assist me with a set of tasks. Does anyone know a reliable web development..... More

Print this item

  python multiprocessing to download sql table
Posted by: mg24 - Oct-31-2022, 03:28 AM - Forum: General Coding Help - Replies (5)

Hi Team,

is it possible to use multiprocessing in below scenario.
downloading sql table into csv files.
to speed up downloading.


[Python]

Import ..... More

Print this item

  Potentiostat/Galvanostat potential issue
Posted by: pepe523869 - Oct-31-2022, 02:45 AM - Forum: General Coding Help - Replies (10)

Good Morning,

I made a potentiostat based on article from https://ww[url=https://python-forum.io/thread-38572.html]..... More

Print this item

Shocked Manual Splines?
Posted by: Power_Broker - Oct-31-2022, 02:19 AM - Forum: General Coding Help - Replies (4)

I'm looking to manually create a 1D curve using splines.

I've tried using SciPy's implementation of spline interpolation, but it's not what I want...... More

Print this item

  a generator and threads
Posted by: Skaperen - Oct-31-2022, 01:25 AM - Forum: News and Discussions - Replies (4)

if a generator spawns a thread, what happens? can 2 or more threads do yields in the same generator? what if 2 or more threads try to iterate the sa..... More

Print this item

  i want to use type= as a function/method keyword argument
Posted by: Skaperen - Oct-31-2022, 12:53 AM - Forum: General Coding Help - Replies (9)

i want to use type= as a function/method keyword argument:

result = that_function(buffer1,buffer2,limit=4096,type=bytes)
can i ..... More

Print this item

  Looping a question until correct feedback is given
Posted by: TylerTrunzo - Oct-30-2022, 09:27 PM - Forum: General Coding Help - Replies (9)

I'm writing my first python program as a number guessing game. I am trying to loop a question until a 'yes' or 'no' response is given but am having tr..... More


Attached Files

Thumbnail(s)
           
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... 518898
  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