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,936
» Latest member: bennyanderson482
» Forum threads: 38,725
» Forum posts: 175,514

Full Statistics

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

Latest Threads
erotic encounters online
Forum: General Coding Help
Last Post: gerrit1985
24 minutes ago
» Replies: 0
» Views: 9
Stephenchers
Forum: General Coding Help
Last Post: Gichardaxora
1 hour ago
» Replies: 0
» Views: 26
Earnestinome
Forum: General Coding Help
Last Post: LhanePulse
1 hour ago
» Replies: 0
» Views: 21
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Gribouillis
2 hours ago
» Replies: 2
» Views: 89
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 3,108
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,521
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 535
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 796
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,893
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 889

 
  Bouncing Ball
Posted by: Fell - Feb-03-2022, 12:15 AM - Forum: GUI - Replies (1)

Hi,

New(ish) Python user here. I'm trying to create a (Windows) program that places a sprite (a small bouncing ball) directly on the screen, on top..... More

Print this item

Bug beginner attempting to make chatbot
Posted by: MonikaDreemur - Feb-02-2022, 09:38 PM - Forum: General Coding Help - Replies (1)

hi! i'm pretty new to python- i mean, i've taken classes, but i haven't taken college-level ones or anything. anyway, could you help me debug this bit..... More

Print this item

  filtering python code the interpreter reads
Posted by: Skaperen - Feb-02-2022, 08:29 PM - Forum: News and Discussions - No Replies

i am looking for a way to run CPython while also having my own script filtering (and changing) the code as it is read from the file. this would be st..... More

Print this item

  How a QMainWindow can open a dialog?
Posted by: panoss - Feb-02-2022, 07:54 PM - Forum: GUI - Replies (4)

I have the following code which has two classes:
-Ui_dialog_in
-myWindow

What I 'm trying to achieve is:
-when myWindow opens, to open a Ui_dia..... More

Print this item

Exclamation Phyton Metin2 Game Left Click not working. Help
Posted by: anonym35 - Feb-02-2022, 07:01 PM - Forum: General Coding Help - No Replies

Hello guys.
After processing the image with phyton in Metin2 game, I want to send the cursor over the image and press the left button. but due to a p..... More

Print this item

  text get index problem
Posted by: philipbergwerf - Feb-02-2022, 06:42 PM - Forum: GUI - Replies (2)

I made a small example of my problem:
[python]from tkinter import *

root = Tk()

text = Text(root)
text.pack()

text.insert('insert', 'some t..... More

Print this item

  longest palindromic subsequence DP solution bug
Posted by: usercat123 - Feb-02-2022, 03:52 PM - Forum: General Coding Help - Replies (9)

Hey,

I am trying to code the following problem: given a string find the length of the longest palindromic subsequence and for the input "GATTACAGAT..... More

Print this item

  When did the number got included in the list?
Posted by: Frankduc - Feb-02-2022, 03:42 PM - Forum: General Coding Help - Replies (14)

Hello,

I am puzzle how to understand when integer are integrated to a list. Here's an example i pick up.

[python]import itertools

def prime_n..... More

Print this item

  Using multiprocessing to produce objects for i in range
Posted by: lucasrohr - Feb-02-2022, 11:13 AM - Forum: General Coding Help - Replies (6)

So I wrote this massive code filling a hotel with fictional objects (i.e. people) with a bunch of attributes with random values, then making a statist..... More

Print this item

  pivot table (excel vs python)
Posted by: Bric - Feb-02-2022, 10:11 AM - Forum: Data Science - Replies (1)

Hello, I'm looking to do a pivot table of a csv file on Python, usually I do it on Excel but I'm looking to automate it. I started with this code
[py..... More

Print this item

  [split] IS there a way to preserve some order in a tSNE/PCA plot?
Posted by: majidvaghari - Feb-02-2022, 08:40 AM - Forum: Data Science - No Replies

Dear Sir/Madam,

I have a question about t-SNE plots?

How can I make a t-SNE plot like the picture:

It’s used to reduce dimensions from6 two 2..... More


Attached Files

Thumbnail(s)
   
Print this item

  How can I get the Middle English and Modern English from this page?
Posted by: Pedroski55 - Feb-02-2022, 04:45 AM - Forum: Web Scraping & Web Development - Replies (5)

I want to get the text of this page because it contains Middle English and Modern Engl..... More

Print this item

  Looking to make a price checking script
Posted by: 6010fd12 - Feb-02-2022, 01:54 AM - Forum: Web Scraping & Web Development - Replies (1)

Spent 10 hours watching some python tutorials so I'm familiar with the very basics of python. I'm looking to make a program with python that:

Print this item

  Print controlled with global-var
Posted by: fmr300 - Feb-01-2022, 10:58 PM - Forum: General Coding Help - Replies (3)

In a script I'm working on, sometimes I'd like to turn off some of the print statements that are informative, while leaving the true-warning print's o..... More

Print this item

  Issue when using open() in converted exe
Posted by: skakalpes - Feb-01-2022, 06:52 PM - Forum: General Coding Help - Replies (2)

Hi. I'm trying to solve a critical issue that prevents to continue working on my project. I think it's something easy to solve and I'm probably just m..... More

Print this item

  a general question
Posted by: barryjo - Feb-01-2022, 06:04 PM - Forum: General Coding Help - Replies (5)

I have the following code, the first method, SendCommandV1, was given to me. My question is do I have to pass ser as an argument when I call SendComm..... More

Print this item

  Pendulum Help Please
Posted by: bill_z - Feb-01-2022, 02:49 PM - Forum: General Coding Help - Replies (6)

In a previous thread, it was suggested I use pendulum to get daylight saving time information. At that time, I was having issues with my Python versi..... More

Print this item

  Using like statement in pandas df
Posted by: bnadir55 - Feb-01-2022, 02:00 PM - Forum: General Coding Help - Replies (1)

Hello,
I have a function in which I want to return in a column all the values that like ABC and return it in a new column as ABC , but I get an erro..... More

Print this item

  remove colon if value is None
Posted by: wardancer84 - Feb-01-2022, 12:57 PM - Forum: General Coding Help - Replies (7)

hey,

i have this comprehension...

extracted_tags = [li['tags'] for li in rule["commands"] if li['tags'] is not None]
wor..... More

Print this item

  port scanner
Posted by: Than999 - Feb-01-2022, 12:24 PM - Forum: General Coding Help - No Replies

Hi, I am learning about cybersecurity and networking by following this Youtube video. For this project I am making a simple port scanner. However, whe..... More

Print this item

  Clearing listboxes
Posted by: klatlap - Feb-01-2022, 09:36 AM - Forum: GUI - Replies (3)

I currently use this function to clear multiple listboxes, but i feel is not a good way to do it and am sure can be done with a for loop but can't wor..... More

Print this item

  Modify project (so that it uses db, QSqlRelationalTableModel etc)
Posted by: panoss - Jan-31-2022, 10:14 PM - Forum: GUI - No Replies

I have this program which displays a form with a QTableView which has 2 columns.
The second column is a combo box.
I want to modify it so that:
-th..... More

Print this item

  use of format function
Posted by: barryjo - Jan-31-2022, 10:09 PM - Forum: General Coding Help - Replies (3)

In the following code, s is returned as an integer
The output is 1
How do I convert the integer s into a string with two decimal places.
i.e. I wou..... More

Print this item

  The use of enumerate
Posted by: Frankduc - Jan-31-2022, 04:32 PM - Forum: General Coding Help - Replies (3)

Hello,

Trying to substract one index by another.

[python]def is_prime_v1(n):
"""Return a boolean indicating if integer n is prime"""
if n ==..... More

Print this item

  Why is this Python code running twice?
Posted by: mcva - Jan-31-2022, 03:09 PM - Forum: General Coding Help - Replies (5)

Hi everybody
Why is this code running twice? Is this related with the variables that the code imports from convert_nc_to_csv1?
Thank you.


[pyth..... More

Print this item

  How to concatenate filepath with variable?
Posted by: Mark17 - Jan-31-2022, 02:30 PM - Forum: General Coding Help - Replies (2)

Hi all,

I'm trying to write a program that will replace a couple lines of a new program (placed in a set filepath) and replace a couple filepath li..... More

Print this item

  How to know coming snmp trap version in python pysnmp?
Posted by: ilknurg - Jan-31-2022, 12:16 PM - Forum: General Coding Help - No Replies

I have a snmp trap receiver for snmp v2. I want to get snmp version in coming traps. If snmp version is 1 or 3 or anything else, return an error. How ..... More

Print this item

  ssues with importing data from ODBC
Posted by: Slavek_d - Jan-31-2022, 09:06 AM - Forum: General Coding Help - Replies (1)

Hi, I am new to Python and I started immediately from importing data I am planning to analyse in pandas(?) to get tables, mean scores etc. I know how ..... More

Print this item

  Give a number for Variable
Posted by: quest - Jan-31-2022, 02:16 AM - Forum: General Coding Help - Replies (2)

I defined symbols via Sympy and I created an array. Then when I want to give a value to the variable, the variable still stay as variable.

[python]..... More

Print this item

  Is it normal so much time training for Training Custom Object Detector??
Posted by: hobbyist - Jan-30-2022, 07:26 PM - Forum: Data Science - Replies (2)

I am following this tutorial: https://tensorflow-object-d[url=https://python-forum.io/thread-36233.html]..... More


Attached Files

Thumbnail(s)
   
Print this item

  Call a function in FormA from FormB
Posted by: panoss - Jan-30-2022, 06:56 PM - Forum: GUI - Replies (3)

Hi everybody.
I 'm looking for a simple example (with SIGNAL, SLOt and Emit()) where we have:
-a main form, say 'FormA' which opens an..... More

Print this item

  question regarding my Python port scanner script
Posted by: Than999 - Jan-30-2022, 04:31 PM - Forum: Networking - No Replies

Hi, I am learning about cybersecurity and networking by following this Youtube video. For this project I am making a simple port scanner. However, w..... More

Print this item

  FTp timeout except
Posted by: korenron - Jan-30-2022, 01:54 PM - Forum: General Coding Help - Replies (2)

Hello
I'm uploading a script file to a server
which casue the server to reboot ( which is what I want )
how do I make the python ignore it? and s..... More

Print this item

  SOlving LInear Equations in Python(Symoy, NUmpy) - Coefficient Problem
Posted by: quest - Jan-30-2022, 11:50 AM - Forum: General Coding Help - Replies (3)

Hello I am trying to solve set of equations and I actually know the how to solve them but I am having some problems and for some reason I cannot give ..... More

Print this item

  Pandas dataframe comparing
Posted by: anto5 - Jan-30-2022, 10:21 AM - Forum: Data Science - No Replies

Hello,

I am reading a csv file using pandas.

my dataframe consist of 3.7 million records and has two column: Date, Subscribers_ID

my datafram..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  erotic encounters online 24 minutes ago gerrit1985 gerrit1985 General Codin...
  Stephenchers 1 hour ago Gichardaxora Gichardaxora General Codin...
  Earnestinome 1 hour ago LhanePulse LhanePulse General Codin...
  C++ program embedding Pyt... 2 hours ago Alexandros Gribouillis General Codin...
  403 Error Yesterday, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Yesterday, 11:22 RonR RonR GUI
  datetime in SQL query. Yesterday, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576055
  Tutorial Requ... 497546
  Web Scraping ... 440012
  Newbie with P... 383781
  New Users Int... 366303
Most reputation
buran 581
snippsat 508
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+ 12089
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bennyanderson482 Today
AstoundzSEO Today
tobey12 Today
alexguemez Yesterday
Shadab Yesterday

User Panel Messages

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