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,238
» Latest member: Reema
» Forum threads: 38,776
» Forum posts: 175,793

Full Statistics

Online Users
There are currently 34 online users.
» 0 Member(s) | 32 Guest(s)
Bing, Google

Latest Threads
print two different seque...
Forum: General Coding Help
Last Post: Reema
45 minutes ago
» Replies: 3
» Views: 2,876
I’m building a Python Dat...
Forum: GUI
Last Post: woooee
7 hours ago
» Replies: 1
» Views: 95
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:56 AM
» Replies: 4
» Views: 144
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Nov-08-2025, 10:39 AM
» Replies: 3
» Views: 124
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 124
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,265
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,378
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,577
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 204
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,208

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

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

  Solving an equation by brute force within a range
Posted by: alexfrol86 - Mar-17-2022, 05:31 AM - Forum: General Coding Help - Replies (3)

Hello! I try to solve the equation sqrt(x**2 + y**2) by brute force within the range [0, 10]. Please help me make this code work

[python]def eq(x, y)..... More

Print this item

  Matplotlib Functions
Posted by: DaveG - Mar-17-2022, 01:46 AM - Forum: Homework - Replies (6)

Hi

I'm running a script in Python3 that is calling for the module matplotlib.pyplot for which I get a message

> pip install pyplot
ERROR: Could..... More

Print this item

  I get attachment paperclip on email without any attachments
Posted by: monika_v - Mar-16-2022, 09:40 PM - Forum: General Coding Help - Replies (5)

Hi,

I'm trying to send a simple email with the code below:

[python]import smtplib
from email.mime.multipart import MIMEMultipart
from email.mi..... More


Attached Files

Thumbnail(s)
   
Print this item

Big Grin Variable flag vs code outside of for loop?(Disregard)
Posted by: cubangt - Mar-16-2022, 07:58 PM - Forum: General Coding Help - Replies (2)

No need for flag, mode code around and works like a champ. Big Grin

So i have the following logic and would like to add a flag or setup in a w..... More

Print this item

  Bluetooth > Raspberry Pi 0 > UDP message
Posted by: georgroth - Mar-16-2022, 03:04 PM - Forum: Networking - No Replies

Hi guys

(sorry for this greenhorn question)

Hopefully you can help me and give me a hint whether it is difficult to create.

I have an Anemome..... More

Print this item

  Display name of a pc connected over lan
Posted by: fatopeo - Mar-16-2022, 09:37 AM - Forum: Networking - Replies (1)

Hi guys.
On my lan i have the following pc (ip -> pc name):
[quote]
192.168.0.1 → pc01
192.168.0.114 → pc02
192.168.0.118 → pc03
192.168.0.136 ..... More

Print this item

  How can i parse my output?
Posted by: ilknurg - Mar-16-2022, 08:39 AM - Forum: General Coding Help - Replies (4)

I have this code script for ldap search.
I want to find user's group.

[python]
import ldap


username = "user1"
l = ldap.initialize("ldap://..... More

Print this item

  Python 3.9.11 release?
Posted by: raghupcr - Mar-16-2022, 07:01 AM - Forum: News and Discussions - Replies (3)

Hi Team,

Do any one have idea about the release date of python 3.9.11 version ( with libexpat 2.4.8 version)
we have critical issues in libexpat t..... More

Print this item

  SyntaxError
Posted by: DaveG - Mar-16-2022, 05:30 AM - Forum: General Coding Help - Replies (3)

Hi

Could someone identify the reason for my syntax error in the python2 script please?

[error] File "init_collapse.py", line 223
print(("%..... More

Print this item

  asking help
Posted by: JHONG_JOBANIE1995 - Mar-16-2022, 02:48 AM - Forum: Homework - Replies (5)

Create
a python script which accepts the Employee name (string), Number of
working hours (int), SSS contribution, Philhealth, Housing loan (all
flo..... More

Print this item

  recusive generator
Posted by: Skaperen - Mar-16-2022, 02:28 AM - Forum: News and Discussions - Replies (2)

i have an algorithm i want to implement. it produces a sequence of number pairs in some order, hence a generator seems to be the way to go. a varian..... More

Print this item

  Find and delete above a certain line in text file
Posted by: cubangt - Mar-15-2022, 08:24 PM - Forum: General Coding Help - Replies (12)

So i have a text file with the following line structure: (In some cases the text file has thousands of rows)

3/8/22, 4:06 PM, String Value
3/8/22,..... More

Print this item

  Showing data change
Posted by: korenron - Mar-15-2022, 01:40 PM - Forum: General Coding Help - Replies (10)

Hello,
I want to do the following
I'm reading canbus data and I want to "save" every ID - then show if I got different data from this PID , and sh..... More

Print this item

  Not able to figure out what is wrong with argparse
Posted by: radioactive9 - Mar-15-2022, 11:47 AM - Forum: General Coding Help - Replies (31)

Hello

I am facing a very unique issue. I have written the following code which will be called by a Tool and pass certain arguments. I was using arg..... More

Print this item

  Hiring expierenced coder with instagram
Posted by: stab - Mar-15-2022, 02:03 AM - Forum: Jobs - No Replies

I am wanting a fully customizable turbo featuring mass account priming, target queuing, multiple target swapping, proxy scoring/switching and autoload..... More

Print this item

  [Solved] Novice question to OOP: can a method of class A access attributes of class B
Posted by: BigMan - Mar-14-2022, 11:03 PM - Forum: General Coding Help - Replies (1)

I am lacking basic knowledge of Object Oriented Programming.

The situation
Let's assume within a main function I have created two instances..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  print two different seque... 45 minutes ago mantonegro Reema General Codin...
  [Tkinter] I’m building a ... 7 hours ago tsgiannis woooee GUI
  Two arguments in input fu... Yesterday, 00:56 Alfredd Pedroski55 General Codin...
  Backward compatibility qu... 11-08, 10:39 yutaozhou buran News and Disc...
  [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 ...
Most views
  The best Prog... 578719
  Tutorial Requ... 509376
  Web Scraping ... 441864
  Newbie with P... 385821
  New Users Int... 375265
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 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Reema Today
lary_p Yesterday
Cristiano 11-08
Alfredd 11-08
clayote 11-08

User Panel Messages

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