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,960
» Latest member: llarkin6
» Forum threads: 38,729
» Forum posts: 175,537

Full Statistics

Online Users
There are currently 43 online users.
» 1 Member(s) | 38 Guest(s)
Bing, Google, AOL, AOL, Pedroski55

Latest Threads
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: deanhystad
10 hours ago
» Replies: 2
» Views: 212
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
10 hours ago
» Replies: 4
» Views: 650
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:17 PM
» Replies: 1
» Views: 747
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:14 PM
» Replies: 6
» Views: 4,981
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Yesterday, 09:50 AM
» Replies: 1
» Views: 1,637
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Yesterday, 03:53 AM
» Replies: 1
» Views: 2,681
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:32 AM
» Replies: 0
» Views: 309
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-25-2025, 01:49 PM
» Replies: 2
» Views: 531
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-24-2025, 02:48 PM
» Replies: 10
» Views: 29,972
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Sep-23-2025, 12:00 PM
» Replies: 4
» Views: 9,757

 
  accessing a second level nested function
Posted by: varsh - Aug-09-2020, 11:04 AM - Forum: General Coding Help - Replies (3)

[python]
def html_tag( tag ):

def body( msg ):
print( "hi! :", msg )

def inn_body( msg1 ):
print( "hola: ", m..... More

Print this item

  I want to create an if-condition, but I'm not sure how to.
Posted by: LeqendFire - Aug-09-2020, 09:13 AM - Forum: General Coding Help - Replies (5)

I want to create an if-condition, but I'm not sure how to do it... I would like, that if the else-condition is true, it prints my message. How can I d..... More

Print this item

  If this and that "case insensitive"
Posted by: tester_V - Aug-09-2020, 05:29 AM - Forum: General Coding Help - Replies (5)

Hi,
I’m trying to ignore all lines that have word CMV in .csv file, problem is some of the lines have small case “cmv”. Basically I’m splitting my fi..... More

Print this item

  code with exception arguments doen't work
Posted by: MaartenRo - Aug-09-2020, 05:27 AM - Forum: General Coding Help - Replies (1)

Hi,

I am trying to write code with exception arguments. Somehow it doesn't work.
What am i doing wrong? Any input is much appreciated!

[python]..... More

Print this item

  My first Python program
Posted by: Herbert58 - Aug-08-2020, 10:22 PM - Forum: Code Review - Replies (2)

I´d appreciate some expert advice for this program - I´m a beginner in Python and suppose some things could be better! For example there must be a bet..... More

Print this item

  Help my software basic(file and def)
Posted by: dionatandiego11 - Aug-08-2020, 09:21 PM - Forum: Homework - Replies (1)

Hi brothers!

I made an application to help manage movies.

basically i have 2 problems.

First, whenever I start the program the "database" (fi..... More

Print this item

  Converting number to roman numerals
Posted by: jagasrik - Aug-08-2020, 08:54 PM - Forum: General Coding Help - Replies (6)

Hi i have been trying to convert number to roman numerals all day but no luck, i know there is a readily available codes on internet with different al..... More

Print this item

  How to convert a string "<... object at POINTER>" to an object?
Posted by: mandaxyz - Aug-08-2020, 06:59 PM - Forum: General Coding Help - Replies (5)

I want to convert a string "<... object at POINTER>" to an object.
Python version: 3.7.4

[python]
cl..... More

Print this item

  Defining multiple functions in the same def process
Posted by: sparkt - Aug-08-2020, 05:09 PM - Forum: General Coding Help - Replies (5)

I'm trying to define a function which would give multiple value outputs after some tedious calculation. Based on my current knowledge the best I can d..... More

Print this item

  Pip prints huge error when installing p5
Posted by: hayden2s - Aug-08-2020, 12:56 PM - Forum: General Coding Help - Replies (1)

I am trying to install the p5 library from PyPi using pip through windows cmd with python 3.8.5. However, it s..... More

Print this item

  how to run another function from main file
Posted by: Mekala - Aug-08-2020, 10:13 AM - Forum: General Coding Help - Replies (3)

Hi,
I have main.py & read_data.py and ready csv file and write. I want to call read_data.py and execute. Byt it giving error as below.

NameError: ..... More

Print this item

  Unittest et patch
Posted by: mad31 - Aug-08-2020, 09:46 AM - Forum: General Coding Help - Replies (2)

Hi,
I'm working with Notebooks Jupyter with my students, and i want to forbid them to use some fonction like len() in their scripts. I use the unitte..... More

Print this item

  Trying to find first 2 letter word in a list of words
Posted by: Oldman45 - Aug-08-2020, 08:34 AM - Forum: General Coding Help - Replies (7)

Hello

I am trying to get this function working but cannot work out what is wrong. Any help will be gratefully received. My input is:

[python]..... More

Print this item

  Unable to read from serial port
Posted by: br0kenpixel - Aug-08-2020, 08:06 AM - Forum: General Coding Help - Replies (1)

I'm working on a project where I control a LED matrix connected to an Arduino.
Using pyserial I open the Arduino's serial port and send a "?" to it...... More

Print this item

  Pattern Require Last Line Print() why?
Posted by: Harshil - Aug-08-2020, 06:47 AM - Forum: General Coding Help - Replies (4)

[python]for x in range(1,6):
for y in range(5,x,-1):
print("",end="")
for z in range(0, x):
print(x,end="")
print()[/pytho..... More

Print this item

  Add new line after finding last string in a region
Posted by: Nigel11 - Aug-08-2020, 06:28 AM - Forum: General Coding Help - Replies (1)

Hello

I have this input .txt file (a demo of it here, on a small scale) that after running the Python 3.6 code it should write in the input the follo..... More

Print this item

  Shutil FileNotFoundError: Errno 2 Help
Posted by: lord_kaiser - Aug-08-2020, 03:24 AM - Forum: General Coding Help - Replies (8)

Hi,

I've recently started learning how to code in Python.

I currently have a list of filenames in a text file (Source Text File). I also have a ..... More

Print this item

  Including a Variable In the HTML Tags When Sending An Email
Posted by: JoeDainton123 - Aug-08-2020, 03:11 AM - Forum: General Coding Help - No Replies

Hello all

I was hoping someone could help me with the following coding problem.

I am trying to send an email where the body of the email is take..... More

Print this item

  Do you keep up with Python Exercises?
Posted by: Donovan - Aug-08-2020, 02:26 AM - Forum: General Coding Help - No Replies

I am not sure if this is the right place to put this but I thought it would be helpful for some people.

I have been doing python exercises / sample p..... More

Print this item

  Upgrade Python Version ?
Posted by: JohnnyCoffee - Aug-08-2020, 12:17 AM - Forum: General Coding Help - Replies (2)

Hi guys, how do I update python version 2.7.16 to version 3.8.5 or more current ?

Print this item

  pil ImageFont error inflateReset2
Posted by: djf123 - Aug-07-2020, 09:48 PM - Forum: General Coding Help - No Replies

I am trying to use PIL's ImageFont tool, but I am getting an unusual error message. PIL installs without any problems and I can use other parts of it ..... More

Print this item

  Python3 openpyxl module
Posted by: GHULIEV - Aug-07-2020, 08:48 PM - Forum: General Coding Help - No Replies

Hello everyone i need help for data write to excel file. this is my script
[python]
target = 'site.com'
api = "api"
limit = 5
url..... More

Print this item

  Errors with Machine Learning trading bot-- not sure why
Posted by: MattKahn13 - Aug-07-2020, 08:39 PM - Forum: Homework - Replies (2)

Hey Everyone!
I am having multiple errors with no traceback with this Q-Learning Trading Bot. Any help would be really appreciated!
Best Wishes,
M..... More

Print this item

  Language Processing
Posted by: standenman - Aug-07-2020, 08:38 PM - Forum: Data Science - Replies (1)

I have a python/django project I had spent a lot of money on with an upwork developer that has come to naught. I am trying to figure out what directio..... More

Print this item

  Errors with Machine Learning trading bot-- not sure why
Posted by: MattKahn13 - Aug-07-2020, 08:19 PM - Forum: Data Science - No Replies

I keep getting errors without any traceback.
[python]

# Import pandas datareader
import pandas_datareader
pandas_datareader.__version__
import ..... More

Print this item

  [HELP] Function that changes its entrances
Posted by: Liquid - Aug-07-2020, 08:14 PM - Forum: Homework - Replies (6)

Hello everyone,

I struggle with a python code. I found the problem and reproduced the condition of its occurence in the following lines:

[pytho..... More

Print this item

  Date and time as filename
Posted by: Herbert58 - Aug-07-2020, 06:04 PM - Forum: General Coding Help - Replies (3)

Hallo everybody,
I want to have files in the format "2020-08-07_19-57-55.txt" - it´s for measuring purpopses and for having a unique filename. I foun..... More

Print this item

  How to map dataframe to list
Posted by: Mekala - Aug-07-2020, 05:48 PM - Forum: General Coding Help - Replies (1)

Hi,
I have a dataframe and and I want to map to list. If list elemnt exist in 'Name' column, then record this list item in column 'id'.

I use the ..... More

Print this item

  Get the biggest number from a two dimensional list
Posted by: rs74 - Aug-07-2020, 04:00 PM - Forum: Homework - Replies (13)

Small extra assignment, to get the biggest number from a two-dimensional list. Now getting all the data from list in brackets, needs only the biggest...... More

Print this item

  Weird function defaults error?
Posted by: wallgraffiti - Aug-07-2020, 03:00 PM - Forum: General Coding Help - Replies (5)

So, I'm making a blockchain module, and made a function that adds a new block object to a given list. I don't understand anything here so can't give m..... More

Print this item

  How useful is PCA for machine learning?
Posted by: Marvin93 - Aug-07-2020, 02:07 PM - Forum: Data Science - No Replies

Hello everyone,

i have a numerical Dataset with 41 Dimensions/Features and 3 labels. The classification with different methods like Decision Tree, ..... More

Print this item

  How to calculate compounded profits on a given day?
Posted by: guv114 - Aug-07-2020, 01:09 PM - Forum: General Coding Help - Replies (12)

Hello,

I have a spreadsheet which im looking to convert into a python code to add onto my website.

Questions is how can I calculate the compound..... More

Print this item

  Site Reliability Engineer / Backend Developer, relocation to Helsinki
Posted by: yellowraven_ - Aug-07-2020, 06:20 AM - Forum: Jobs - No Replies

Our client is a cloud technology startup launched in January 2016, developing Database-as-a-Service. They run and manage Open Source database and back..... More

Print this item

  comprehension for sets
Posted by: Skaperen - Aug-07-2020, 02:09 AM - Forum: General Coding Help - Replies (2)

is there a way to create a populated set in a comprehension without creating a list ahead of it? my iterator for the comprehension is a generator.

Print this item

  Using Reportlab to create a landscape pdf
Posted by: SmukasPlays - Aug-07-2020, 12:30 AM - Forum: General Coding Help - Replies (2)

I'm trying to create a pdf in landscape format, but I couldn't do it with some of things that I found on the internet. I don't know if they're not use..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Unable to resolve FileNot... 10 hours ago llarkin6 deanhystad General Codin...
  [Tkinter] how to export a... 10 hours ago RonR noisefloor GUI
  Is the interpreter that c... Yesterday, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... Yesterday, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... Yesterday, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... Yesterday, 03:53 justaguy SprunkiRetake Networking
  My goal to be hired worki... Yesterday, 00:32 GnomeSweetGnome GnomeSweetGnome News and Disc...
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
  pip install requests does... 09-24, 14:48 misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... 09-23, 09:08 compuman145 compuman145 General Codin...
Most views
  The best Prog... 577067
  Tutorial Requ... 499864
  Web Scraping ... 440813
  Newbie with P... 384801
  New Users Int... 368920
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 8176
snippsat 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
llarkin6 Yesterday
Xuitar Yesterday
SprunkiRetake Yesterday
GnomeSweetGnome 09-25
alxpetrovo2272 09-25

User Panel Messages

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