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,939
» Latest member: goodvicent
» Forum threads: 38,724
» Forum posts: 175,513

Full Statistics

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

Latest Threads
private dating for adults
Forum: General Coding Help
Last Post: xyz987
2 hours ago
» Replies: 0
» Views: 24
NEED HELP, LOST OF INVEST...
Forum: General Coding Help
Last Post: goodvicent
5 hours ago
» Replies: 0
» Views: 77
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
10 hours ago
» Replies: 11
» Views: 4,098
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 575
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,513
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 927
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,414
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,269
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,472
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,440

 
  python prints none in function output
Posted by: chairmanme0wme0w - Jul-07-2021, 04:24 PM - Forum: General Coding Help - Replies (3)

i'll attach screenshots but basically i'm making a text-based adventure game for my bridging work for sixth form and idk just look i've tried like ret..... More


Attached Files

Thumbnail(s)
       
Print this item

  Scaling text QLabel following display mode windows '100%, 125% ...)
Posted by: VIGNEAUD - Jul-07-2021, 03:56 PM - Forum: GUI - Replies (2)

Hello

I developed (I'm starting) a small application in python with qlabel (qt) widget objects.

So I set a font for these labels but when I swit..... More

Print this item

  Need help converting string to int
Posted by: dedesssse - Jul-07-2021, 03:48 PM - Forum: General Coding Help - Replies (7)

I'm trying to convert strings to numbers, to multiply both numbers, when i print it out.. It still warns me its 2 strings
[python]num = input("Enter ..... More

Print this item

  Library for wavelet transformation
Posted by: erdemath - Jul-07-2021, 03:39 PM - Forum: Data Science - Replies (2)

Hello all,

I am looking for a library for wavelet transformation. In particular, I need to collect the respective wavelet transformation coefficien..... More

Print this item

Question Dataframe: comparing value in last row vs the row before last
Posted by: lorensa74 - Jul-07-2021, 01:47 PM - Forum: General Coding Help - Replies (2)

Is the following a valid code? I am simply trying to compare the contents of the previous row vs the 2nd previous row.

[python]if row['DIRECTION']...... More

Print this item

  Emailed passwords
Posted by: ndc85430 - Jul-07-2021, 11:28 AM - Forum: Board - Replies (4)

I had to reset my password today and after going through the process, I got an email with a new password in. Why is that? Are passwords really stored ..... More

Print this item

  passing php variable to python file
Posted by: jerald - Jul-07-2021, 09:11 AM - Forum: General Coding Help - Replies (1)

I have a php file that pass file name as string variable to python. And once the python receive the string variable it will open the file based on the..... More

Print this item

  sqlite3 check last record
Posted by: rwahdan - Jul-07-2021, 07:48 AM - Forum: GUI - Replies (1)

I have many records in table and I have the field enabled that can be either yes or no. I am making select statement that gets all records with enable..... More

Print this item

  How do I read in a Formula in Excel and convert it to do the computation in Python?
Posted by: JaneTan - Jul-07-2021, 07:36 AM - Forum: General Coding Help - Replies (2)

I have a table of time-series data downloaded from some system. Say it is the revenue data for different persons across time. Eg below

Table 1
| ..... More

Print this item

  Fit np.polyfit to data points
Posted by: Laplace12 - Jul-07-2021, 06:08 AM - Forum: General Coding Help - Replies (3)

Hey! Trying to get polyfit working. I want to fit a 2nd order polynomial to some data points, but the code returns no plot. All x10, x11, y10, etc. va..... More

Print this item

  mouse library demands root access
Posted by: ineuw - Jul-07-2021, 03:31 AM - Forum: General Coding Help - Replies (2)

Using either pip3 install mouse and sudo pip3 install mouse generate the following error when importing the library into a script (Autok..... More

Print this item

  Help with reading json file
Posted by: hhchenfx - Jul-07-2021, 01:34 AM - Forum: General Coding Help - Replies (5)

Hi,
Can anyone help me to review this short code below that read json data from url?
I am not sure why it give error.
Thank you,
HHC

[inline]d..... More

Print this item

  immutable types
Posted by: Skaperen - Jul-07-2021, 12:08 AM - Forum: News and Discussions - Replies (2)

we have a couple immutable types. why no immutable dictionaries? yeah, yeah we have named tuples. but those are awkward to create. it should be as..... More

Print this item

  Importing a function from another file runs the old lines also
Posted by: dedesssse - Jul-06-2021, 05:53 PM - Forum: General Coding Help - Replies (6)

I'm trying to import a function, an "def" function, to a new file, but when i do, the old line ABOVE are also read. Why!?

Print this item

  PIL module and Python 2.7 under Windows 10
Posted by: Lad - Jul-06-2021, 04:58 PM - Forum: News and Discussions - Replies (3)

Hello,
is PIL module for Windows 10 and Python 2.7 available?
Thanks

Print this item

  Checking the number of arguments a function takes
Posted by: Chirumer - Jul-06-2021, 04:18 PM - Forum: General Coding Help - Replies (3)

user_func is a function with either 1 or 2 parameters.
What's the best way to call the function with 2 parameters if it supports it, or call it with 1..... More

Print this item

  Dynamic Printing With Python Terminal
Posted by: MrTim - Jul-06-2021, 01:06 PM - Forum: General Coding Help - Replies (2)

Hello there,

I have a question regarding python terminal printing.
I am currently working on a project in windows. I would like to display text on..... More


Attached Files

Thumbnail(s)
   
Print this item

  API or UDP to home automation system
Posted by: MandMtje - Jul-06-2021, 12:11 PM - Forum: Networking - Replies (4)

Hello,

I am a beginner in python programming. For a project I want to have a program that reads 2 keys pressed simultaneously, like preferably alt ..... More

Print this item

  Starlette: accumulated tasks. Why?
Posted by: lifemaker - Jul-06-2021, 09:26 AM - Forum: Networking - Replies (2)

Hi everyone!
I have test project:

[python] from starlette.applications import Starlette
from starlette.responses import JSONResponse
..... More

Print this item

  *args implementation and clarification about tuple status
Posted by: amjass12 - Jul-06-2021, 08:37 AM - Forum: General Coding Help - Replies (10)

Hi!

I don't think this should go in the code checking section as I am also asking for clarification on implementation so hope this thread is ok her..... More

Print this item

  Several pdf files to text
Posted by: mfernandes - Jul-05-2021, 08:56 PM - Forum: General Coding Help - Replies (10)

Dear Python community,
I have several pdf files in a folder and I would like to convert all of them into text file. In this link it is explained how ..... More

Print this item

  regex pattern to extract relevant sentences
Posted by: Bubly - Jul-05-2021, 07:19 PM - Forum: General Coding Help - Replies (2)

Hi All,

I am looking to extract sentences which contains combination of given words and separated by "n" number of words between them. When i run t..... More

Print this item

  Tik Tok Auto Claimer
Posted by: TikTokAutoClaimer - Jul-05-2021, 06:50 PM - Forum: Jobs - No Replies

Need a tik tok username auto Claimer. Must not get spammed blocked and run flawlessly. pm here or contact via discord L33T#4744

Print this item

  Learning and need help
Posted by: mathews32 - Jul-05-2021, 02:00 PM - Forum: General Coding Help - Replies (1)

Hey All, complete noob at this. Here is my question:

# This is my first python project
[python]calc_to_secs = 24 * 60 * 60
num_of_days = input('E..... More

Print this item

  pool mysql error - not catch by try\except?
Posted by: korenron - Jul-05-2021, 08:58 AM - Forum: General Coding Help - Replies (1)

Hello,
I'm using Pool function to run several mysql command 'update'

I guess I have some connection problems because I'm gettig this error:
[pyt..... More

Print this item

  Want to remove the text from a particular column in excel
Posted by: shantanu97 - Jul-05-2021, 08:13 AM - Forum: General Coding Help - Replies (2)

Data looks like when I open this csv in Notepad.

  • Year Latitude Longitude Magnetic Declination SourceFile
    1985 88 75 " magneticFields
    D ..... More


Attached Files

.py   c-1.py (Size: 248 bytes / Downloads: 394)
.csv   magnetic_declination_australia_1.csv (Size: 3.49 KB / Downloads: 459)
Print this item

  Convert the typical MATLAB GUI creator code to Python
Posted by: Army - Jul-05-2021, 05:48 AM - Forum: GUI - Replies (1)

Hi there,

I'm very new to Python. I'd like to seek your thoughts and expertise on how to convert the following MATLAB code to Python.

[python] ..... More

Print this item

  Tkinter Drawing/Annotating on live video
Posted by: KDog - Jul-04-2021, 08:48 PM - Forum: General Coding Help - Replies (4)

Hello all! I am working on an app that opens the webcam and then allows various functionality such as save image, change brightness etc.
I have imple..... More

Print this item

  unexpected token < in json at position 0
Posted by: Frodoxzibit - Jul-04-2021, 08:20 PM - Forum: General Coding Help - Replies (5)

[python]from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys


username = 'xxxxxxxx'
password = 'xxxx'

..... More

Print this item

  checking for last item in for loop
Posted by: Skaperen - Jul-04-2021, 07:58 PM - Forum: General Coding Help - Replies (11)

i am iterating over a list and need to do something slightly different for the last item in the list. i currently do this with a counter that is 1 on..... More

Print this item

  writing 2 up to 2**7 in phyton ( while )
Posted by: ben1122 - Jul-04-2021, 05:12 PM - Forum: Homework - Replies (3)

I have a question ( not homework, im basically studying to learn phyton a little before study ):
it says to write all the numbers between 2**1 to 2**..... More


Attached Files

Thumbnail(s)
   
Print this item

  creating tuples
Posted by: erdemath - Jul-04-2021, 03:22 PM - Forum: Data Science - Replies (8)

Hello,

I need to create multidimensional stand-alone tuples, which is in other words arrays of arrays. If I need to give some example, let¨s say I ..... More

Print this item

  [Solved] Plotting data from txt file
Posted by: Laplace12 - Jul-04-2021, 02:14 PM - Forum: General Coding Help - Replies (1)

Hey! I'm trying to plot a text file that looks like this:

[python]#0 0.4000 0.1485 2.1926 Fixed 0.0195 0.0299 64.9854 11.2706 23.7440 1.48..... More

Print this item

  event.key == K_r:
Posted by: Pedroski55 - Jul-04-2021, 10:49 AM - Forum: Game Development - Replies (2)

I am new to pygame, so I am looking at the docs here and trying each bit out in Idle..... More

Print this item

  behavior list of lists
Posted by: roym - Jul-04-2021, 10:24 AM - Forum: General Coding Help - Replies (5)

Dear all,

I am new to Python, and currently I am practicing around a bit with lists. One of the assignments is to create a 3D list. Below is the c..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  private dating for adults 2 hours ago xyz987 xyz987 General Codin...
  NEED HELP, LOST OF INVEST... 5 hours ago goodvicent goodvicent General Codin...
  403 Error 10 hours ago CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 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...
Most views
  The best Prog... 576410
  Tutorial Requ... 498185
  Web Scraping ... 440313
  Newbie with P... 384197
  New Users Int... 367197
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 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
goodvicent Yesterday
atylerfraces2254 Yesterday
AdrianCocian Yesterday
humanoidAI Yesterday
Baran12332 09-19

User Panel Messages

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