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,237
» Latest member: alexmaarley8855
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

Online Users
There are currently 45 online users.
» 0 Member(s) | 41 Guest(s)
Bing, Google, Applebot

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 4
» Views: 91
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 96
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 70
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 106
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,066
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,364
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,555
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 186
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,196
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,442

 
  Unresolved reference problem
Posted by: john7 - Oct-18-2022, 10:05 AM - Forum: General Coding Help - Replies (1)

In the function

[python]
def parse_message(msg_data):
ival = 0
fval = 0.0
opcode = msg_data[3]

if opcode == MSG_OPCODE_V..... More

Print this item

  Saving the times a script is run to a file or ...
Posted by: 3Pinter - Oct-18-2022, 05:46 AM - Forum: General Coding Help - Replies (7)

Hi,

I have a lot of scripts from which I'd like to know the amount of times it was run.

I coded a working version a long time ago plus I was eve..... More

Print this item

  Python Snippets Source
Posted by: kucingkembar - Oct-18-2022, 12:50 AM - Forum: General Coding Help - No Replies

hi, sorry for my bad English,
after previously I ask about "subscripts" in https://python-forum.io/thread-38441.html,
turn out it is called "Snippet..... More

Print this item

  Error TypeError: output_type_handler() takes 2 positional arguments but 6 were given
Posted by: paulo79 - Oct-17-2022, 06:23 PM - Forum: General Coding Help - Replies (1)

Hi all, I'm running a python code that was working before with older version. Now using 3.10 I'm gettin error below:

[python]TypeError: output_typ..... More

Print this item

  import module error
Posted by: tantony - Oct-17-2022, 04:29 PM - Forum: General Coding Help - Replies (5)

I'm learning Flask by watching a YouTube tutorial

https://www.youtube.com/watch?v=dam0GPOAvVI
https://github.com/techwithtim/Flask-Web-App-Tutorial/t..... More

Print this item

  Code
Posted by: StoneCherry0119 - Oct-17-2022, 03:03 PM - Forum: General Coding Help - Replies (4)

Python code

Print this item

  export project to an installable software in Pycharm
Posted by: jalal0034 - Oct-17-2022, 12:25 PM - Forum: General Coding Help - Replies (2)

Hi everybody
How can create an installable software with all needed files and packages in Pycharm ?

Print this item

  python call stored procedure
Posted by: mg24 - Oct-17-2022, 08:07 AM - Forum: General Coding Help - Replies (2)

Hi Team,

Need help how to call stored procedure via python.

I am using pyodbc libarary.

[python]query = """EXEC[DBS_database].[dbo].[sp_Reco..... More

Print this item

  Can't stop if statement from executing even though False + Messy code?
Posted by: monkeydesu - Oct-17-2022, 01:46 AM - Forum: Homework - Replies (1)

I'm doing the 100 days of Python on Udemy and am doing the day 15 challenge. I'm tasked with making a coffee machine, ask which drink from user, ask f..... More

Print this item

  401 Unauth error
Posted by: GUaro5555 - Oct-17-2022, 01:06 AM - Forum: Web Scraping & Web Development - Replies (7)

Hi gurus .

I m still very new to python so go easy on me, I have been trying to create this project that login to a website, what I have so far is ..... More

Print this item

  black
Posted by: Skaperen - Oct-17-2022, 12:59 AM - Forum: News and Discussions - Replies (10)

it turns out that i do not like various details of how black formats my code. so, i hope this is just defaults that can be changed, somehow. ..... More

Print this item

  Something the code dont work
Posted by: AlexPython - Oct-17-2022, 12:39 AM - Forum: General Coding Help - Replies (13)

I have a little problem with this code, it works sometimes, and something it doesn't. I don't know what is causing the problem. beneath, I will provid..... More

Print this item

  Convert Excel file into csv with Pipe symbol..
Posted by: mg24 - Oct-16-2022, 06:01 PM - Forum: General Coding Help - Replies (4)

Hi Team,

I have excel file, I want to read that excel file and save it into csv files.
But delimiter I expect "|" symbol instead of comma,


1..... More

Print this item

  num+1
Posted by: astral_travel - Oct-16-2022, 02:15 PM - Forum: General Coding Help - Replies (12)

hi,
in the following code:

[python]
__author__ = 'jeffreyhunt'

num = int(input("Please choose a number to divide: "))

listRange = list(rang..... More

Print this item

  Hopfield network for classification
Posted by: saoko - Oct-16-2022, 11:30 AM - Forum: News and Discussions - Replies (1)

Hi everyone!
I had a task to create Hopfield network for classification with Iris dataset. I went through Internet, but found nothing about it.
Is..... More

Print this item

  Transform 2d plot into 1d plot for som
Posted by: saoko - Oct-16-2022, 09:12 AM - Forum: General Coding Help - No Replies

Hi everyone!
I'm trying to understand self-organising map neural network with Python. Here's a code:

[python]
import numpy as np
from numpy.ma...... More

Print this item

  Row Count and coloumn count
Posted by: Yegor123 - Oct-15-2022, 06:13 PM - Forum: General Coding Help - Replies (4)

Im making my first game on python and it was talking about adding row and coloumn counts could someone explain what that means and what does it do ?

Print this item

  Add root node to xml
Posted by: SriRajesh - Oct-15-2022, 02:20 PM - Forum: General Coding Help - Replies (3)

Hi,
I generated xml string and want to add root node:

#lets create a dataframe
df=pd.DataFrame({'A':[1,2,3],'B':['a','b','c']})

[python]def to..... More

Print this item

  Python presentation materials
Posted by: PA3040 - Oct-15-2022, 07:18 AM - Forum: News and Discussions - Replies (2)

Hi Team,
I am teacher of middle school
we have decided to teach python for our school students from grade 8 onwards
it would be grate if some one ..... More

Print this item

  Get http header ?
Posted by: JohnnyCoffee - Oct-14-2022, 11:06 PM - Forum: Networking - Replies (1)

I'm using the wsgiref module to run an application and I need to get the request header that comes from the client's browser to handle http responses,..... More

Print this item

  is there an unused character in Python?
Posted by: Skaperen - Oct-14-2022, 10:59 PM - Forum: News and Discussions - Replies (8)

is there an unused character in Python? i'm looking for a character i won't see outside of quotes that i can drop into my code for some source proces..... More

Print this item

  Starting place for Pygame Mobile app
Posted by: XavierPlatinum - Oct-14-2022, 10:46 PM - Forum: Game Development - Replies (2)

For anyone who's made mobile apps before, where is a smart place to start making a pygame game for android? Is there a simple template I can dissect ..... More

Print this item

Exclamation IndexError: Replacement index 2 out of range for positional args tuple - help?
Posted by: MrKnd94 - Oct-14-2022, 09:46 PM - Forum: General Coding Help - Replies (2)

Hello.

I've been trying for days to fix this error, but to no avail.

This is the code:

[python]def secret_formula(started):
jelly_beans ..... More

Print this item

  Print not appearing in output
Posted by: dgizzly - Oct-14-2022, 09:41 PM - Forum: Homework - Replies (1)

[python]
def main():
#Intro
print("Roulette Wheel Colors App...")


#Prompt user for numbers (0-36)
print("Please eneter poc..... More

Print this item

  New learner in Python, and need help on the term explanation
Posted by: BaicaiPy - Oct-14-2022, 05:37 PM - Forum: Homework - Replies (3)

[b]• Auto load the initial data given in pdf file
• You required to use an appropriate data structure to represent the initial data in-memory.
• It ..... More

Print this item

  dynamic object creation using python
Posted by: gary - Oct-14-2022, 04:27 PM - Forum: General Coding Help - Replies (7)

I have the following requirement
1. Create several geometric objects such as square, triangle, circle etc.
2. Need to create a drop down menu that d..... More

Print this item

  Python Idle won't start
Posted by: totalmachine - Oct-14-2022, 04:12 PM - Forum: General Coding Help - Replies (9)

Output of "idle &" in terminal after garuda linux upgrade:

[error]File "/usr/bin/idle", line 3, in
from idlelib.pyshell import main
File "/usr/li..... More

Print this item

  List of Modules/Libraries Installed by Default?
Posted by: rontarrant - Oct-14-2022, 12:24 PM - Forum: General Coding Help - Replies (2)

I know I can get a list of what's installed using:
pip freeze

However, I don't know which of the installed modules/librar..... More

Print this item

  PowerBI: Using Python Regex to look for values in column
Posted by: MarcusR44 - Oct-14-2022, 10:24 AM - Forum: General Coding Help - Replies (1)

I'm trying to add a column called ofInterest to select UK postcodes that match RG, OX & SA, the column would contain a 1 if the match is found, or 0 i..... More

Print this item

  detect equal sequences in list
Posted by: flash77 - Oct-14-2022, 09:10 AM - Forum: General Coding Help - Replies (17)

Hello,
I'm a beginner in python and I'm trying to get the beginning (picture_nr_hanger_start) and the end (picture_nr_hanger_end) of equal sequences ..... More

Print this item

Smile please help me remove error for string.strip()
Posted by: jamie_01 - Oct-14-2022, 06:40 AM - Forum: General Coding Help - Replies (3)

[code]
#!/usr/bin/python3

from bs4 import BeautifulSoup
import requests
import lxml
import csv


URL = "https://sandiego.craigslist.org/sear..... More

Print this item

  shortening Python code
Posted by: Skaperen - Oct-13-2022, 11:42 PM - Forum: News and Discussions - Replies (12)

to what extent and how do you guys go about shortening your Python code to make it fit in an 80 column terminal or virtual terminal window? is anyone..... More

Print this item

  Inscrutable error
Posted by: Led_Zeppelin - Oct-13-2022, 04:23 PM - Forum: General Coding Help - Replies (7)

The following Python code gives an error when it is interpreted.

[code]
GridsearchCV(
cv=TimeSeriesSplit(gap=0, max_train_size=None, n_splits..... More


Attached Files

Thumbnail(s)
   
Print this item

Shocked plt.scatter() errors
Posted by: asja2010 - Oct-13-2022, 08:15 AM - Forum: General Coding Help - No Replies

Hey Py community,
I'm writing down Markowitz's efficient frontier with jupy using the 4 significant cryptos as stocks and verything is fine until the..... More


Attached Files

Thumbnail(s)
   
Print this item

  How do you manage script?
Posted by: kucingkembar - Oct-13-2022, 04:35 AM - Forum: General Coding Help - Replies (14)

sorry for my bad English,
I have a lot of "subscripts" like this:

[python]#trim whitespace start and end
txt = " Hello! "
strippedtxt = txt..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 1 hour ago Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [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 ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578684
  Tutorial Requ... 509129
  Web Scraping ... 441841
  Newbie with P... 385793
  New Users Int... 375066
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 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
alexmaarley8855 Yesterday
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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