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,263
» Latest member: aanthonymaaleyo3938
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

Online Users
There are currently 29 online users.
» 1 Member(s) | 25 Guest(s)
Bing, Google, AOL, SledgeNE

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
9 hours ago
» Replies: 2
» Views: 86
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
10 hours ago
» Replies: 1
» Views: 52
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
11 hours ago
» Replies: 1
» Views: 52
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 311
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 44
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 69
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 260
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 136
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 235
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 419

 
  setting up pipenv
Posted by: tobiasfw - Jan-13-2021, 05:07 PM - Forum: General Coding Help - Replies (1)

Dear all,

I am doing the CodeCademy Python 3 course and there is a video explaining how to install pipenv. I am stuck thow because my setup seems t..... More

Print this item

  Find the next item once the previous one has been identified
Posted by: Pavel_47 - Jan-13-2021, 04:53 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello,

Here is the page I explore:
..... More

Print this item

  Check element for a particular type
Posted by: Pavel_47 - Jan-13-2021, 04:08 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello,
When I print type of a particular element, the output is:

Output:
<class 'bs4.element.Tag'>
How to check it in condition statement ..... More

Print this item

  What is wrong with my format?
Posted by: Oshadha - Jan-13-2021, 03:54 PM - Forum: General Coding Help - Replies (5)

Script,
[python]
import requests


url = 'https://github.com/masker112/Quick-Reply-app/blob/Stuff/Quick%20Reply.jpg?raw=true'
r = requests.get(u..... More

Print this item

  How to detect Windows key?
Posted by: Oshadha - Jan-13-2021, 03:22 PM - Forum: General Coding Help - Replies (1)

How do you detect if,
Windows key + Shift + Q keys are pressed?

I tried to search google, and Youtube, but it didn't make sense!

Print this item

  How to get %appdata% directory?
Posted by: Oshadha - Jan-13-2021, 03:02 PM - Forum: General Coding Help - Replies (1)

I tried to get %appdata% directory,
But failed.

Script,

import os
print os.getenv('APPDATA')
[error]
File "C:\Users\U..... More

Print this item

  Connect 4 assigment
Posted by: Milan - Jan-13-2021, 02:21 PM - Forum: Homework - Replies (10)

Hello team,

I have this assignment to do:
[quote][i]
Have you ever played "Connect 4"? It's a popular kid's game by the Hasbro company. In this ..... More

Print this item

  Random Number Repeating
Posted by: Tzenesh - Jan-13-2021, 12:54 PM - Forum: General Coding Help - Replies (5)

Hello everyone.
I am very new to Python and coding in general and like many people I am learning from a text adventure game. I have figured out the ba..... More

Print this item

  Attribute Error: object has no attribute
Posted by: djwilson0495 - Jan-13-2021, 11:09 AM - Forum: Game Development - Replies (3)

Hi I'm trying to make a basic game. I'm attempting to have rows of stars as background. This is the code I'm using:

[python]
import sys

import..... More

Print this item

  Which Machine Learning Course is Best Between Udemy and Coursera
Posted by: ankitdixit - Jan-13-2021, 09:01 AM - Forum: News and Discussions - Replies (6)

Hello Everyone, I want to learn machine learning. I am looking for online course. I have checked on google to find the course and I have found some to..... More

Print this item

  Combine Two Recursive Functions To Create One Recursive Selection Sort Function
Posted by: Jeremy7 - Jan-13-2021, 08:56 AM - Forum: General Coding Help - Replies (12)

This is just a personal project I'm working on, and have been working on it for days, looking at several Recursive Selection Sort functions online to ..... More

Print this item

  Scraping Whole Page Source
Posted by: GJG - Jan-13-2021, 08:49 AM - Forum: Web Scraping & Web Development - Replies (1)

Is there a way to input the whole page source in exactly same form as you would be seeing it when you click rmb 'View page source' on a browser, just ..... More

Print this item

  What is this error?
Posted by: Oshadha - Jan-13-2021, 07:34 AM - Forum: GUI - Replies (5)

[error]Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\tkinter\__i..... More

Print this item

  How to unlock pc using opencv
Posted by: Tyrel - Jan-13-2021, 07:21 AM - Forum: General Coding Help - Replies (3)

Can someone please help me.
I'm trying to unlock my pc using opencv, here is my current code. It opens up a window with my laptop camera and detects..... More

Print this item

  What is this error?
Posted by: Oshadha - Jan-13-2021, 06:23 AM - Forum: GUI - Replies (1)

Script,
[python]
from tkinter import *

main = Tk()
main.title("1. Unit & Dimentions")
#root.geometry("1600x800+0+0")

#Var Details
length = ..... More

Print this item

  string index out of range
Posted by: jade_kim - Jan-13-2021, 02:58 AM - Forum: General Coding Help - Replies (4)

Here is the code that is causing IndexError...

s = "python"
print(s[8])
[output]
Traceback (most recent call last):..... More

Print this item

  super newbie question: escape character
Posted by: tsavoSG - Jan-13-2021, 12:29 AM - Forum: General Coding Help - Replies (3)

i'm trying pycharm and idle at the same time, and found a strange situation
[python]
print("1 hello")
print("2 hell\n o")
[color=#E74C3C]print("3 ..... More

Print this item

  cv2.waitkey(0) not working coreectly
Posted by: Pedroski55 - Jan-12-2021, 11:19 PM - Forum: General Coding Help - Replies (1)

This is what I'm trying (it's the beginning of a cv2 powered OMR multiple choice marking program) :

Along the way, I want to check on the image, se..... More

Print this item

  Course design assistance
Posted by: Pythonr - Jan-12-2021, 09:27 PM - Forum: Jobs - Replies (6)

Hi there,

I hope it is okay to post this on the forum as I am a little unsure who to contact.@Admins please feel free to remove and DM me instead i..... More

Print this item

  Loading CSV trouble
Posted by: DrinkinBeer - Jan-12-2021, 08:27 PM - Forum: General Coding Help - Replies (2)

Hi everyone,

I just started learning Python and having an issue with loading csv. I had it working yesterday. The goal is to load my CSV and event..... More

Print this item

  Calculating BLEU scores in Python
Posted by: kg17 - Jan-12-2021, 07:57 PM - Forum: Homework - Replies (1)

Dear all,
Wondering if anyone has ever had any experience with calculating BLEU scores for evaluating machine translation quality?
I want to compare..... More

Print this item

  Style question on adherence to PEP 8 with whitespace near an "=" sign
Posted by: nilesh - Jan-12-2021, 07:39 PM - Forum: General Coding Help - Replies (6)

Python.org (in the PEP 8 Style Guide for Python Code) says that this is incorrect syntax:

[python]def munge(input: AnyStr, limit = 1000): ...[/pyth..... More

Print this item

  Is there anyway to make a .py file into a .exe file?
Posted by: Oshadha - Jan-12-2021, 05:52 PM - Forum: General Coding Help - Replies (2)

I have a code in .py extension, which I need to convert into .exe extension.
If you ask why,
~

Print this item

  Am I a retard - else and finally blocks in a try statement
Posted by: RubenF85 - Jan-12-2021, 03:35 PM - Forum: General Coding Help - Replies (6)

Came across this gem today:

[python]def reciprocal(n):
try:
n = 1 / n
except ZeroDivisionError:
print("Division failed"..... More

Print this item

  ONE input => THREE outputs
Posted by: Tricia279 - Jan-12-2021, 01:05 PM - Forum: General Coding Help - Replies (6)

Hi there,
I face the problem that I have no idea yet, how to program this:

pos0 = input() example: pos0 = 160

pos1 and pos2 should also get the..... More

Print this item

  Paho-mqtt fully supports MQTT 5.0 protocol?
Posted by: nitinkothari17 - Jan-12-2021, 11:14 AM - Forum: General Coding Help - No Replies

In my application, I'm using MQTT 5.0 protocol so which is best in python paho-mqtt or gmqtt (with asyncio, Does paho-mqtt fully supports MQTT 5.0 pro..... More

Print this item

  Multi-pop using different loops
Posted by: leoahum - Jan-12-2021, 08:28 AM - Forum: General Coding Help - Replies (6)

I'm doing a multi-pop function as following. The goal is to remove the first few elements in a list. For instance, if I have [1,2,3,4,5,6,7,8,9] and s..... More

Print this item

  pyqt5 layout
Posted by: Nickd12 - Jan-12-2021, 03:06 AM - Forum: GUI - Replies (8)

for anyone that knows about pyqt5 how can i set my BuildDateTime class in a box to group it together then place it in the Qmainwindow the window class..... More

Print this item

  Help in reducing the number of bits for gps latitude and longitude
Posted by: sohaikia - Jan-12-2021, 02:55 AM - Forum: Homework - Replies (1)

Hi all, I'm new to Python programming. I'm currently doing my school project and my supervisor has tasked me to reduce the number of bits for GPS (lat..... More

Print this item

  Cutting and Pasting from terminal programs
Posted by: matt_the_hall - Jan-12-2021, 02:13 AM - Forum: Bar - Replies (2)

Hi,

I am doing most of my python scripting these days using kaa edit. I ssh to the box I run my server on and run kaa whateverscript.py and get hac..... More

Print this item

  (HELP GREATLY APPRECIATED) New user- Huge Pygame Installation Problem!
Posted by: Jbomb - Jan-12-2021, 12:16 AM - Forum: Game Development - Replies (1)

Hey all Python Enthusiasts!
I recently obtained the Python Crashcourse and am working through the book. I now need to install Pygame for the first bi..... More

Print this item

  Python Coding Help: Calculating Sums
Posted by: bperez - Jan-11-2021, 10:51 PM - Forum: Homework - Replies (9)

Hello,

I am completely new to python and I'm taking a course online that has the following question:

When inputting a number, how can you verify..... More

Print this item

  Numpy array
Posted by: BrianPA - Jan-11-2021, 10:48 PM - Forum: Data Science - Replies (13)

Please excuse my ignorance, just trying to learn. This is my first attempt at writing a program myself. I'm self taught through courses on the web. ..... More

Print this item

  pyqt5
Posted by: Nickd12 - Jan-11-2021, 10:18 PM - Forum: GUI - Replies (2)

is there any way to use timer object to set text in pyqt5 with out creating another function to get the time to upsate or is there any alternative way..... More

Print this item

Question Pandas - Creating additional column in dataframe from another column
Posted by: Azureaus - Jan-11-2021, 08:47 PM - Forum: Data Science - Replies (2)

I currently have a some financial data (Date, Price, Return). Assume the number of rows is 20,000.

Date Price Return
03/01/1950 16..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 9 hours ago nathanael deanhystad General Codin...
  PermissionError: [Errno 1... 10 hours ago Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... 11 hours ago Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 578999
  Tutorial Requ... 510716
  Web Scraping ... 442012
  Newbie with P... 386047
  New Users Int... 377333
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 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday
nathanael 11-14
JamesFalkner 11-14

User Panel Messages

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