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,276
» Latest member: eastnoob
» Forum threads: 38,790
» Forum posts: 175,865

Full Statistics

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

Latest Threads
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
1 hour ago
» Replies: 0
» Views: 6
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
3 hours ago
» Replies: 11
» Views: 5,949
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
3 hours ago
» Replies: 2
» Views: 4,273
[BeautifulSoup] A few que...
Forum: Web Scraping & Web Development
Last Post: Winfried
6 hours ago
» Replies: 0
» Views: 30
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 08:34 PM
» Replies: 3
» Views: 256
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:03 AM
» Replies: 1
» Views: 120
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 193
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Nov-18-2025, 04:13 PM
» Replies: 5
» Views: 3,104
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 229
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Nov-17-2025, 08:44 AM
» Replies: 2
» Views: 161

 
  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

  Simple password generator using a module I made myself
Posted by: Fr4nkl1n_1k3h - Aug-06-2020, 11:02 PM - Forum: Code Review - Replies (3)

Hello guys this is my first post.
Here's the link to the code: https://github.com/fr4nkl1n-1k3h/Password_Generator

Print this item

  My Python Console doesn´t work ModuleNotFoundError: No module named 'tokenize'
Posted by: RuanKishibe - Aug-06-2020, 09:50 PM - Forum: General Coding Help - Replies (1)

First things first, english isn´t my first language, but I will still try my best.

I´m a newbie in Python (started to program in it two weeks ago)..... More

Print this item

  What Does from tkinter import filedialog Mean?
Posted by: JoeDainton123 - Aug-06-2020, 09:30 PM - Forum: General Coding Help - Replies (2)

Hello all

New to python.

I just wanted to ask what does the following mean:-

import tkinter 
Would it be correct to s..... More

Print this item

  tmdbsimple error
Posted by: pythonnewbie138 - Aug-06-2020, 09:16 PM - Forum: General Coding Help - Replies (4)

I'm running into an obstacle in converting my TMDB query script into a function. The only change is having the search query as the only argument in th..... More

Print this item

  Execute full script
Posted by: samuelbachorik - Aug-06-2020, 08:09 PM - Forum: General Coding Help - No Replies

Hi dear users, in this code my function detects mouse click and while loop is refreshing x and y positions of mouse. I need these values together but ..... More

Print this item

  list.index() help
Posted by: qmfoam - Aug-06-2020, 07:53 PM - Forum: General Coding Help - Replies (4)

I have a 2D list called sampleArray. type(sampleArray) shows that it is a list. A small sample of the list is:

[python]
sampleArray = [['2020-07..... More

Print this item

  Trying to get a "simple" code to work, re: 3.5 vs 3.8 vs Not using Linux
Posted by: Evalias - Aug-06-2020, 07:31 PM - Forum: Data Science - Replies (3)

So, I have this code as an example test to check out moving averages from a .csv file, using Jupyter notebook (although I uninstalled version 3.8 abou..... More

Print this item

  Assigning multiple values using tuple
Posted by: sivacg - Aug-06-2020, 07:07 PM - Forum: General Coding Help - Replies (2)

As a newbie, I am trying to understand the assigning multiple values using tuples. May I request one of you to help me here?

[python]
>>> a=('x','..... More

Print this item

  How to define a function to create a resorted list?
Posted by: sparkt - Aug-06-2020, 06:33 PM - Forum: General Coding Help - Replies (6)

After day-long trial-and-error and research I found the code from web which does what I tried to do, i.e. resorting a list according to absolute diffe..... More

Print this item

  Extracting rows based on condition on one column
Posted by: Robotguy - Aug-06-2020, 04:22 PM - Forum: Data Science - Replies (2)

Hi Everyone,

Here is an interesting problem I am trying to solve.

I have a (Nx4) array and want to extract those rows which have their third co..... More

Print this item

  HELP!!!
Posted by: munirh070 - Aug-06-2020, 04:13 PM - Forum: General Coding Help - Replies (6)

#######################################
[python]number = [1,1,1,1,1,1,1,1,1,1]

for i in car:
if(i == 1):
number.remove(i)

print(c..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to Implement Real-Tim... 1 hour ago ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 3 hours ago temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 3 hours ago Barber532 SledgeNE Game Developm...
  [BeautifulSoup] A few que... 6 hours ago Winfried Winfried Web Scraping ...
  Graph Interpolate Difficu... Yesterday, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... Yesterday, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
Most views
  The best Prog... 579160
  Tutorial Requ... 511721
  Web Scraping ... 442127
  Newbie with P... 386193
  New Users Int... 378917
Most reputation
buran 581
snippsat 511
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+ 12108
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
eastnoob Yesterday
cruisesfares Yesterday
SavingSquirrel199835 11-18
Astrobert 11-18
DataScientist071 11-18

User Panel Messages

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