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,935
» Latest member: tobey12
» Forum threads: 38,721
» Forum posts: 175,508

Full Statistics

Online Users
There are currently 51 online users.
» 1 Member(s) | 40 Guest(s)
Applebot, Bing, AOL, Google, Facebook, AOL, Pedroski55

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 2,813
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,234
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 254
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 563
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,723
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 665
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 248
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,203
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,424
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 1,081

 
  requests-html + Beautifulsoup
Posted by: klaarnou - Mar-21-2022, 05:31 PM - Forum: Web Scraping & Web Development - No Replies

Hello,

I am trying to scrape a dynamic web page. The code I use is:

[python]
from requests_html import HTMLSession
from bs4 import BeautifulSo..... More

Print this item

  create new log file on logging?
Posted by: korenron - Mar-21-2022, 02:37 PM - Forum: General Coding Help - Replies (6)

Hello,
I'm using logging and I have notice that the file is not clean after reboot (program start again)
what do I need to do in order to "clean" th..... More

Print this item

  How to trigger for loop after while
Posted by: quest - Mar-21-2022, 06:41 AM - Forum: General Coding Help - Replies (2)

Hello,

This is my code:
[python]
input_number=3
layer=5
paulis = list(product(['I','X','Y','Z'],repeat=input_number))
a = list(pro..... More

Print this item

  The Match
Posted by: jefsummers - Mar-21-2022, 02:49 AM - Forum: Bar - No Replies

In my line of work, residency positions (doctors) are assigned by an annual event called The Match. Students apply to programs, programs invite for in..... More

Print this item

  Pygame with OpenGL on RPI Zero without X: invalid operation
Posted by: aserranoh - Mar-20-2022, 09:49 PM - Forum: General Coding Help - No Replies

Hello everyone!

I have the following code, which I just copied from a tutorial on internet (https://www.jarutex.com/index.php/2021/10/15/7164/):
..... More

Print this item

  SyntaxError
Posted by: DaveG - Mar-20-2022, 09:43 PM - Forum: General Coding Help - Replies (4)

Hi
Would someone be able to identify my syntax error please?
[error]
print ( >> fdeg , "%.8f %.8f %.5f" % (xx[ii], yy[jj], deformation[jj, ii]..... More

Print this item

  list sort() function bring backs None
Posted by: CompleteNewb - Mar-20-2022, 08:57 PM - Forum: General Coding Help - Replies (6)

i have a program that gives back a random list of numbers which i then sort using .sort() , but then this happened:

[python]
list1 = [1,1,1,1,..... More

Print this item

  Help with kivy for a learner
Posted by: Talbot9 - Mar-20-2022, 07:25 PM - Forum: General Coding Help - Replies (2)

Hello

Please forgive my inexperience but I'm new to coding I'm trying to find a good video guide on how to create some blocks for an app I'm makin..... More

Print this item

  Unable to count the number of tries in guessing game.
Posted by: Frankduc - Mar-20-2022, 06:39 PM - Forum: General Coding Help - Replies (7)

Hello,

pyscript is crashing if count = 0 declare inside def check(guess):
otherwise i get local variable 'count' referenced before assignment

[pyth..... More

Print this item

  can Inner Class reference the Outer Class's static variable?
Posted by: raykuan - Mar-20-2022, 05:49 PM - Forum: General Coding Help - Replies (6)

In the nested class, can Inner Class reference the Outer Class's static variable?

[python]
class Outer(object):
a = 111

class Inner(ob..... More

Print this item

  PyPi Download Counts and Warehouse Migration?
Posted by: tlee0818 - Mar-20-2022, 05:35 PM - Forum: General Coding Help - Replies (1)

I did a download count analysis on PyPi's projects, and found something interesting.

https://imgur.com/a/ZUWf28B

There is a significant jump in ..... More

Print this item

  Python Project
Posted by: sprocket - Mar-20-2022, 01:18 PM - Forum: Homework - Replies (2)

My son is studying Python at school. My knowledge is very basic in Python, but I do understand programming languages and coding. Unfortunately I an un..... More

Print this item

  How can users store data temporarily in flask app?
Posted by: darktitan - Mar-20-2022, 11:59 AM - Forum: Web Scraping & Web Development - Replies (6)

Hi
Im wondering how users in my app can store data temporarily?

Right now im using lists who shows some data the user inputs. It works kind off when ..... More

Print this item

  Could you explain each part of the code?
Posted by: Tsushida - Mar-19-2022, 07:47 PM - Forum: General Coding Help - Replies (2)

Hello! Could you guys explain to me each part of this code right here:

[python]n = int(input())
alpha = 'abcdefghijklmnopqrstuvwxyz'
print(*[''.j..... More

Print this item

  [split] TypeError: 'int' object is not callable
Posted by: flash77 - Mar-19-2022, 05:06 PM - Forum: General Coding Help - Replies (4)

Dear deanhystad,

I tried to create a form in tkinter because, as you mentioned, the player shouldn't have to install some extra packages.
(I'm pla..... More

Print this item

Question Beginner Boolean question [Guessing game]
Posted by: TKB - Mar-19-2022, 01:58 PM - Forum: General Coding Help - Replies (4)

Dear all,

I recently decided to study Python (no prior experience). I took the beginner course available on Youtube: https://www.youtube.com/watch?..... More


Attached Files

Thumbnail(s)
   
Print this item

  Webscrapping sport betting websites
Posted by: KoinKoin - Mar-19-2022, 10:07 AM - Forum: Web Scraping & Web Development - Replies (4)

Hello everyone,

As part of my improvement in Python, I want to scrap some sport betting websites and try to compare the odds.
I have few websites ..... More

Print this item

  How to set a sequence of midi note on and note off values in ticks
Posted by: tomharvey - Mar-19-2022, 10:02 AM - Forum: General Coding Help - Replies (2)

Hello,

I am currently writing an application where i need to write midi files using the tick value for each notes duration and onset. I have decid..... More

Print this item

  Why is the if construct not calculating correctly?
Posted by: egemynet - Mar-19-2022, 09:33 AM - Forum: General Coding Help - Replies (21)

Why is the result wrong in the if structure below, it gives 1 every time, but it should be 2 in my checks (python 3.1)

[python]bars = exchange.fetc..... More

Print this item

  Array Indices?
Posted by: DaveG - Mar-19-2022, 01:56 AM - Forum: Homework - Replies (1)

Hi
My learning curve for Python is long.

I'm running a script that was used in someone else's project and I need to change some parameters to suit..... More

Print this item

  How does this next work?
Posted by: Pedroski55 - Mar-18-2022, 11:11 PM - Forum: General Coding Help - Replies (1)

Using next() with os.walk() I can very neatly and easily get all files in a folder and ignore other folders if present.

I have to say, I don't real..... More

Print this item

  how to assign items from a list to a dictionary
Posted by: CompleteNewb - Mar-18-2022, 10:46 PM - Forum: General Coding Help - Replies (3)

How can i simplify this code?

[python]
listplayers = [['player1', 5,1,300,100],['player2', 10,5,650,150],['player3', 17,6,1100,1050]]
dictionary ..... More

Print this item

  Controlling an Arduino with Python
Posted by: cubangt - Mar-18-2022, 01:40 PM - Forum: News and Discussions - Replies (5)

So while looking for some arduino assistance lastnight, i ran across some videos showing how to control an ardunio with python code..
All the videos..... More

Print this item

  map df1 to df2
Posted by: SriRajesh - Mar-18-2022, 11:19 AM - Forum: Data Science - Replies (5)

Hi,
I have two data frames:

[python]df1:
col1 col2 col3
A JY 1
C nY 13
MMS JY 41
K SA 94
..... More

Print this item

  Pandas + PIL on Linux (Python 32)
Posted by: Clives - Mar-18-2022, 11:03 AM - Forum: News and Discussions - Replies (3)

Greetings,

The environment is Linux, Python 2.7 32-bit

I have to load a number of Python 2.7, 32 bit library files (.whl/.egg) on Linux.
I tried sev..... More

Print this item

  My Code isn't working...
Posted by: End3r - Mar-18-2022, 10:54 AM - Forum: General Coding Help - Replies (4)

Hi. I am new to Python so I'm not that skilled. As I was coding my game, I realised something was up. When I went to play it and I inserted my name, n..... More

Print this item

  Plot several graphs on the same row
Posted by: Menthix - Mar-18-2022, 09:19 AM - Forum: General Coding Help - Replies (1)

Hello,
Here is a code that I use to plot multiple boxplots at the same time :

[python]for year in [2016,2017,2018,2019,2020,2021] :
plt.figu..... More


Attached Files

Thumbnail(s)
   
Print this item

  Fourier series in Python
Posted by: Armandito - Mar-18-2022, 09:01 AM - Forum: General Coding Help - Replies (3)

Hello everyone,

I'm new here so I hope I'm in the right place to ask some questions !

I would like to get the equation of the Fourier series of ..... More


Attached Files

Thumbnail(s)
   
Print this item

  how do change data in a database
Posted by: CompleteNewb - Mar-17-2022, 10:06 PM - Forum: Data Science - Replies (5)

i have list of list

listofplayers = [[player1, 5,1,300,100],[player11, 10,5,650,150],[player23, 17,6,1100,1050]]

and i have a database

player..... More

Print this item

Bug multiprocessing
Posted by: Alivegamer - Mar-17-2022, 09:16 PM - Forum: General Coding Help - Replies (12)

So I'm trying to learn how to use multiprocessing and It looks like I have all the code correct but still returns "Done" and doesn't print hello and h..... More

Print this item

  Convert python dataframe to nested json
Posted by: kat417 - Mar-17-2022, 04:57 PM - Forum: General Coding Help - Replies (1)

I have flat csv data loaded into Data frame and trying to build nested json. I was able to build a nested json with orders as list but not able to add..... More

Print this item

  Sampling
Posted by: frohr - Mar-17-2022, 02:17 PM - Forum: General Coding Help - Replies (7)

Hi,
Is there any possibility how to read samples - one sample every 30microseconds?
Is it real in python?
I need read samples via GIPO pins, in tot..... More

Print this item

  position of shortest string
Posted by: Ali_ - Mar-17-2022, 11:07 AM - Forum: Homework - Replies (2)

Hello!
I have to create a function that takes as a parameter a list of strings. I need my function to return a number which is the position of the st..... More

Print this item

  Convert Date to another format
Posted by: lonesoac0 - Mar-17-2022, 09:49 AM - Forum: General Coding Help - Replies (2)

Hello all,

I am looking to convert the date format of: 2022-03-16 to: 2022-03-16 06:00:00+00:00

How do I do that?

Thank you.

Print this item

  Installing py Files
Posted by: DaveG - Mar-17-2022, 07:44 AM - Forum: Homework - Replies (1)

Hi
I have a bunch of .py files sitting in my command line directory path and I wish to install them to Python3. I have tried 'sudo apt install filena..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  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
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
Most views
  The best Prog... 575973
  Tutorial Requ... 497389
  Web Scraping ... 439941
  Newbie with P... 383680
  New Users Int... 366126
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+ 12088
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
tobey12 Today
alexguemez Yesterday
Shadab Yesterday
Dibbley Yesterday
XenonBlack 09-16

User Panel Messages

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