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,533
» Latest member: aihancaiji31
» Forum threads: 38,661
» Forum posts: 175,191

Full Statistics

Online Users
There are currently 380 online users.
» 0 Member(s) | 373 Guest(s)
Applebot, Google, AOL, Yandex, Baidu

Latest Threads
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
5 hours ago
» Replies: 6
» Views: 644
Qt Event Filtering
Forum: GUI
Last Post: deanhystad
6 hours ago
» Replies: 3
» Views: 149
processing nested json da...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Today, 01:32 AM
» Replies: 1
» Views: 102
Convert .pdf to .txt
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:23 AM
» Replies: 7
» Views: 468
Trouble Importing cell2lo...
Forum: General Coding Help
Last Post: snippsat
Jul-12-2025, 04:00 PM
» Replies: 3
» Views: 266
Why is bool() an instance...
Forum: General Coding Help
Last Post: deanhystad
Jul-12-2025, 02:41 AM
» Replies: 5
» Views: 247
[SOLVED] Why does regex f...
Forum: General Coding Help
Last Post: Pedroski55
Jul-11-2025, 11:52 PM
» Replies: 7
» Views: 4,010
Custom Sorting List of Di...
Forum: Homework
Last Post: Larz60+
Jul-11-2025, 03:34 PM
» Replies: 1
» Views: 161
Coding Standards
Forum: General Coding Help
Last Post: snippsat
Jul-11-2025, 01:12 PM
» Replies: 2
» Views: 242
Make code run faster: poi...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:24 AM
» Replies: 3
» Views: 778

 
  Joining two jupyter notebooks and getting an error!
Posted by: Led_Zeppelin - Oct-19-2022, 12:32 PM - Forum: General Coding Help - Replies (1)

I am using the nbmerge command to join two jupyter notebooks into one larger notebook.

It appears to work. However, when running the new notebook, ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Creating a change table - £0.01-£0.50?
Posted by: MrKnd94 - Oct-19-2022, 12:01 PM - Forum: Homework - Replies (9)

Hello,

I'm trying to complete my workbook for university, but I'm stuck on this question: Write a program that determines how many of each coin ( f..... More


Attached Files

Thumbnail(s)
   
Print this item

  Numpy Structure and Efficiency
Posted by: garynewport - Oct-19-2022, 11:34 AM - Forum: General Coding Help - Replies (2)

I have the following code:

[python]
import matplotlib.pyplot as plt
import matplotlib.cbook as cbook

import numpy as np
import math

SIGMA ..... More

Print this item

  what version has the fix for the CVEs?
Posted by: juniarti - Oct-18-2022, 09:01 PM - Forum: News and Discussions - Replies (11)

Hi,
I have list of CVE for python and how do I find out what python version did has the fix for these list of CVE?
CVE-2018-20060, CVE-2019-16935, C..... More

Print this item

  Taking any 2d image and passing it to create a level
Posted by: iki_a_toure - Oct-18-2022, 09:00 PM - Forum: General Coding Help - Replies (4)

Hello,

I need help please. I am trying to figure out how can I take any 2d image I got and pass it in a python program with outlines that would act..... More

Print this item

  help RuntimeError: no running event loop
Posted by: marpaslight - Oct-18-2022, 07:14 PM - Forum: General Coding Help - Replies (5)

[python]from dataclasses import dataclass
from tkinter.messagebox import YES
from telethon import TelegramClient
from telethon import utils
from t..... More

Print this item

  mysql id auto increment not working
Posted by: tantony - Oct-18-2022, 02:25 PM - Forum: General Coding Help - Replies (10)

I deleted ID 2 from mySQL db, but then I have the following to AUTO INCREMENT

[python]import mysql.connector

mydb = mysql.connector.connect(
..... More

Print this item

  Post Request containing username/password using python for jwt
Posted by: anna - Oct-18-2022, 02:24 PM - Forum: Networking - Replies (1)

Hi All,

I am trying to get token through requests with user and password, there one small javascript provided by Vendor (this was demo in postman)...... More

Print this item

  NameError
Posted by: nafshar - Oct-18-2022, 01:24 PM - Forum: General Coding Help - Replies (3)

I am getting a NameError that I do not understand.
It appears the function "combo" is defined in the proper place, so "combo not found" is puzzling ..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  RemoTe server operation w... 5 hours ago mario17 snippsat General Codin...
  Qt Event Filtering 6 hours ago deanhystad deanhystad GUI
  processing nested json da... Today, 01:32 Kumo_Koloo Pedroski55 Web Scraping ...
  Convert .pdf to .txt Yesterday, 11:23 vmars316 Pedroski55 General Codin...
  Trouble Importing cell2lo... 07-12, 16:00 haileyp snippsat General Codin...
  Why is bool() an instance... 07-12, 02:41 voidtrance deanhystad General Codin...
  [SOLVED] Why does regex f... 07-11, 23:52 Winfried Pedroski55 General Codin...
  Custom Sorting List of Di... 07-11, 15:34 aryasinner Larz60+ Homework
  Coding Standards 07-11, 13:12 kency snippsat General Codin...
  Make code run faster: poi... 07-11, 07:24 Bennygib FrankBuckland General Codin...
  Cleaning my code to make ... 07-11, 07:20 BSDevo FrankBuckland General Codin...
Most views
  The best Prog... 572684
  Tutorial Requ... 485716
  Web Scraping ... 437139
  Newbie with P... 380075
  Thread remain... 351373
Most reputation
buran 581
snippsat 507
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+ 12073
buran 8174
snippsat 7352
deanhystad 6855
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aihancaiji31 Today
gmonroe Today
Tharindu Today
thomasjoe604 Today
psychologiss443 Today

User Panel Messages

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