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,945
» Latest member: susan
» Forum threads: 38,724
» Forum posts: 175,520

Full Statistics

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

Latest Threads
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: susan
24 minutes ago
» Replies: 4
» Views: 9,036
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
4 hours ago
» Replies: 2
» Views: 371
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
5 hours ago
» Replies: 0
» Views: 32
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
10 hours ago
» Replies: 9
» Views: 516
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 4,720
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,057
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,411
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,965
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,726
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,797

 
  Regular expression: return string, not list
Posted by: Pavel_47 - Jan-14-2021, 11:10 AM - Forum: General Coding Help - Replies (3)

Hello,

In the following string I want to eliminate ';'.
The code

aaa = 'ABCD;'
bbb = re.findall('[A-z]', aaa)
returns list:
[..... More

Print this item

  Print output not working
Posted by: xninhox - Jan-14-2021, 10:45 AM - Forum: General Coding Help - Replies (7)

Dear All,

i started studying python and i have been facing some issues with command print. I will do an exaple:
[python]
>>>print=('Hello World'..... More

Print this item

  QR code data missing in some of my QR codes
Posted by: Pedroski55 - Jan-14-2021, 08:11 AM - Forum: General Coding Help - Replies (6)

Does this indicate a computer memory problem?

I read a csv file with student names and number in to a dictionary: numsnames

The dictionary has 1..... More

Print this item

  how to count frequency in a column
Posted by: yk303 - Jan-14-2021, 06:48 AM - Forum: Data Science - Replies (3)

Hello,

Can somebody please tell me how I can count number of 'Buy', 'Sell' on a yearly basis for the chart below.

thanks,

YK303

[output]
..... More

Print this item

  TA-Lib pip install not working Mac (Fix Found)
Posted by: DrinkinBeer - Jan-14-2021, 03:05 AM - Forum: General Coding Help - Replies (3)

Whats up everyone, hoping someone has an ideas as I have tried everything I can find to make this work.

Running iOS BigSur with Python 3.9.1 64bit.
..... More

Print this item

  Python - Pandas writing blank files to file
Posted by: tdunphy - Jan-14-2021, 12:11 AM - Forum: Data Science - No Replies

I have a python script that writes to several file formats via Pandas. It can write to CSV/JSON/HTML/Excel.

I'm pulling the data from MongoDB and i..... More

Print this item

  What type of *data* is the name of a list/tuple/dict, etc?
Posted by: alloydog - Jan-13-2021, 07:43 PM - Forum: General Coding Help - Replies (9)

In this excerpt of something I'm playing with, I create a variable from the user input. The user inpout is then added to a string. The resultant str..... More

Print this item

  Invalid syntax using conditionals if - else
Posted by: jperezqu - Jan-13-2021, 07:31 PM - Forum: General Coding Help - Replies (1)

Hi, I'm self-taught Python. I use version 3.9.
I wrote simple code to learn how to use the "if" and "else" conditionals, and they worked, but I tried..... More

Print this item

  Conditional
Posted by: erestum - Jan-13-2021, 06:48 PM - Forum: General Coding Help - Replies (3)

I am trying to design a condition yes/no statement questions and I cannot figure out what I am doing wrong :(
[python]
name = input("What is your na..... More

Print this item

  Pygame Tutorials
Posted by: MK_CodingSpace - Jan-13-2021, 06:27 PM - Forum: Tutorial Requests and Submissions - No Replies

I have developed a series of Python game tutorials on my Youtube Python Programming Chan[url=https://python-forum.io/thread-31989.html]..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Creating a Mindmap progra... 24 minutes ago J_Miller susan General Codin...
  A coding beginner needs h... 4 hours ago Littlefish Littlefish General Codin...
  Is the interpreter that c... 5 hours ago helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 10 hours ago Anunderling deanhystad General Codin...
  403 Error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
Most views
  The best Prog... 576661
  Tutorial Requ... 498783
  Web Scraping ... 440499
  Newbie with P... 384431
  New Users Int... 367983
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+ 12087
buran 8175
snippsat 7368
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
susan Today
jatinkumar12 Today
angelhealu504 Today
helendamdam Today
pllrdvalery Yesterday

User Panel Messages

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