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,271
» Latest member: aminrony1999
» Forum threads: 38,787
» Forum posts: 175,856

Full Statistics

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

Latest Threads
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
3 hours ago
» Replies: 3
» Views: 151
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Yesterday, 11:47 AM
» Replies: 4
» Views: 151
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Yesterday, 08:44 AM
» Replies: 2
» Views: 118
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 163
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 347
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 66
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 110
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 353
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 203
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 313

 
  Having an issue installing pygame
Posted by: JetimLee - Oct-25-2020, 05:09 PM - Forum: Board - Replies (1)

Hello all, I tried installing pygame with pip install pygame and the following error is what I received:

ERROR: Command errored out with exit sta..... More

Print this item

  cant get my elif function to direct me to where i want
Posted by: fvfre - Oct-25-2020, 04:50 PM - Forum: General Coding Help - Replies (1)

i've been trying to make a text based adventure game using python and im stuck. im trying to use an elif command to direct me to a part of the game af..... More

Print this item

  removing item
Posted by: pastakipp - Oct-25-2020, 04:01 PM - Forum: Homework - Replies (3)

I have a question, is it possible to remove a string in a list, if the same string also exists in a file, by using a code?

If yes, how can i do tha..... More

Print this item

  Cannot open url link using urllib.request
Posted by: Askic - Oct-25-2020, 03:46 PM - Forum: General Coding Help - Replies (5)

Hello Python experts,

when trying to execute this little code snippet
[code]
import urllib.request

scarlet_pimpernel_link = r'https://gutenber..... More

Print this item

  Inheritance problem
Posted by: Maryan - Oct-25-2020, 02:39 PM - Forum: General Coding Help - No Replies

def showHeader doesn't work and I realized that I did some mistake when I start coding the app. I created 'class application' with all elements from t..... More

Print this item

  Help
Posted by: virtual_claude - Oct-25-2020, 02:24 PM - Forum: General Coding Help - Replies (4)

Hi All,

Please go easy on me, I am new to this and I have never programmed/scripted before.

I am trying to learn python, and really struggling w..... More

Print this item

  How do use data from csv files as variables?
Posted by: JUSS1K - Oct-25-2020, 12:30 PM - Forum: General Coding Help - Replies (1)

[size=small]I started learning python myself as a hobby and I'm currently stuck with a csv tasks which I'm doing. See, I want to use the data from my ..... More

Print this item

  Multiple conditions when indexing an array with or without np.where
Posted by: noob2305 - Oct-25-2020, 07:42 AM - Forum: General Coding Help - Replies (1)

Hi everyone,

I would appreciate some tips regarding my problem. There is an array (np.array) where I should find rows and columns of interesting el..... More

Print this item

  Getting started in Machine Learning
Posted by: Harshil - Oct-25-2020, 06:40 AM - Forum: Data Science - Replies (5)

Hey! I wanted to get started in machine learning and deep learning.
but i don't know how to get into it?

Please Guide me!! Confused

Print this item

  XOR solution explanation needed.
Posted by: omm - Oct-25-2020, 06:30 AM - Forum: Homework - Replies (7)

Question:
For a given list of numbers, only one digit is repeated odd number of times. Pass the list through function and return the number which is r..... More

Print this item

  Using pandas library
Posted by: ramitaherwahdan1978 - Oct-25-2020, 06:21 AM - Forum: General Coding Help - Replies (5)

Hi,

I am a teacher and we are using python and pandas data structure. I am having trouble with this code:

[python]
import pandas as pd
numbers..... More

Print this item

Bug Python Shell 3.9.0 - Issue with indentation
Posted by: Earis - Oct-25-2020, 03:46 AM - Forum: General Coding Help - Replies (17)

https://www.ppaste.org/ZlGieSKbc

The above code works fine on any other interpreter(12,16,done) but when I use the python shell 3.9.0 I get SyntaxE..... More

Print this item

  stats in sidebar?
Posted by: metulburr - Oct-25-2020, 02:24 AM - Forum: Board - Replies (6)

If we are minimizing things to expand such as online today, should we put the stats page in the sidebar too minimized by default?

Print this item

Video Autofill websforms
Posted by: JudgeDredd - Oct-24-2020, 11:22 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi members,

Was wondering if one can advise how to go about automating filling in webforms that exist on different websites, with all different fie..... More

Print this item

  Unspecified syntax error
Posted by: hhydration - Oct-24-2020, 11:09 PM - Forum: Homework - Replies (1)

[python]
def vigenere_encode(message, key):
encoded= ''
for c in range(len(message)):
msg_char_index=alpha.index(message[c])
..... More

Print this item

  [python=name.py] Issue
Posted by: ptrivino - Oct-24-2020, 10:42 PM - Forum: Board - Replies (1)

I made a post earlier, and I found that when I click the Python (to insert code in the post) it asks for a name/label. But when I supply one, the [pyt..... More

Print this item

  sleep_cycle()
Posted by: Skaperen - Oct-24-2020, 10:23 PM - Forum: Code sharing - No Replies

sleep_cycle.py:
[python]
from time import sleep,time as secs

def sleep_cycle(*arg):
"""Sleep to an offset time cycle.
sleep_cycle(offset,cy..... More

Print this item

  Modules and namespaces (again?)
Posted by: ptrivino - Oct-24-2020, 10:18 PM - Forum: General Coding Help - Replies (1)

Perhaps all I need is someone who can describe how to do this. I am writing a program which is getting lengthy, and wanted to move some subroutines to..... More

Print this item

  Unicode letters in crawling page
Posted by: DMDoniz - Oct-24-2020, 09:30 PM - Forum: Web Scraping & Web Development - Replies (5)

Hi all,

currently I'm trying to learn how to crawl web pages in python. But I'm a bit confused when I have a look into developer tools of my selected..... More

Print this item

  Netmiko Loop question
Posted by: sc00ter - Oct-24-2020, 09:09 PM - Forum: General Coding Help - Replies (2)

I'm trying to figure out how to loop over a list of interface and run a TDR (Time Division Reflectometer) on Cisco switch ports.

I'm able to get th..... More

Print this item

  list call problem in generator function using iteration and recursive calls
Posted by: postta - Oct-24-2020, 08:47 PM - Forum: General Coding Help - Replies (1)

[inline]I want to convert any long integer number from 12576 to [6, 2], all the following snippets give me [[6, 2]] I want to remove the 2nd square b..... More

Print this item

Bug Help on Flagging Timestamps
Posted by: Daring_T - Oct-24-2020, 08:00 PM - Forum: General Coding Help - Replies (2)

Hi, I was trying to flag timestamps that increment but 1,but cannot be more than 3 matches and not '0:00:00' or '0:00:01', lastly flag the highest out..... More

Print this item

  change numerical values to categorical names
Posted by: JoeOpdenaker - Oct-24-2020, 07:38 PM - Forum: General Coding Help - Replies (3)

I am trying to convert numerical data points to categorical names in output. I want it to be labelled as categorical name but I need the raw data to ..... More

Print this item

  Best practices for searching lists of lists
Posted by: osxtra - Oct-24-2020, 07:33 PM - Forum: General Coding Help - Replies (1)

Hi, all,

Python 3.9, compiled from source on OSX 10.13.6

After a fair amount of experimentation and searching the inter-tubes, I have a few ques..... More

Print this item

  [SOLVED] Filling multidict from CSV file?
Posted by: Winfried - Oct-24-2020, 07:13 PM - Forum: General Coding Help - Replies (3)

Hello,

For some reason, the list that is filled from the CSV file is OK, but when printing the contents of the multidict, I get more than three val..... More

Print this item

  View and extend native python class
Posted by: PythonDev - Oct-24-2020, 06:53 PM - Forum: General Coding Help - Replies (2)

How do I view the code of a native python class to be able to extend it? Class would be FieldStorage of the cgi module.

Print this item

  Switch Frames
Posted by: Maryan - Oct-24-2020, 05:59 PM - Forum: GUI - Replies (2)

Any help is appreciated. I'm trying to create main window(quiz), on click start button I want to switch the frame(pagetwo)etc.

[python]from tkinter..... More

Print this item

  Can't open files
Posted by: Lass86 - Oct-24-2020, 05:30 PM - Forum: General Coding Help - Replies (5)

Hello everyone,

I keep running into this issue and after some research I still don't know what to do. I have used different IDE's and editors, but ..... More

Print this item

  Passing on values
Posted by: DurkVell - Oct-24-2020, 05:17 PM - Forum: GUI - Replies (4)

Hi, I'm new to Python and tkinter programming. I have tried to find an answer to my problem on this forum, but couldn't find it. This problem is surel..... More

Print this item

  saving issue on homework assignment
Posted by: russoj5 - Oct-24-2020, 04:26 PM - Forum: Homework - Replies (2)

Hi All,

Anyone have any experience with saving a python module on a Mac? I was doing a homework assignment and there were no issues. I saved the fi..... More

Print this item

  Tkinter font style
Posted by: ATARI_LIVE - Oct-24-2020, 04:01 PM - Forum: General Coding Help - Replies (2)

Here I have code:
[python]Label(window_1, textvariable=display_alarm_switch, font=("Ticking Timebomb BB", 30), fg=colorfg, bg=colorbg).place(x=x_pos,..... More

Print this item

  unexpected output
Posted by: asyrafcc99 - Oct-24-2020, 02:40 PM - Forum: General Coding Help - No Replies

def compile_data():
with open("dict.pickle","rb") as f:
tickers = pickle.load(f)

main_df = pd.DataFrame()

for count,ticker..... More

Print this item

  Anyone interested in joining a start-up let me know!
Posted by: JackTarsh - Oct-24-2020, 01:37 PM - Forum: Data Science - Replies (1)

Hi guys! I'm the CEO of a tech start-up and need the help of a developer. If anyone here is interested please let me know by replying or sending me a ..... More

Print this item

  define a variable using an if statement
Posted by: Margaridalopes - Oct-24-2020, 01:31 PM - Forum: General Coding Help - Replies (2)

I would like to define a variable using an if statement, for example:

a=0
b=1

if a = 0:
   c = b
 else:
   c = a
I know ..... More

Print this item

  repeating
Posted by: pastakipp - Oct-24-2020, 11:28 AM - Forum: Homework - Replies (1)

hello guys, when i run this code i can only change 1 item in the list, but i want to repeat the code untill all the three items in the list are change..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Graph Interpolate Difficu... 3 hours ago Tuurbo46 deanhystad General Codin...
  [SOLVED] Access keys and ... Yesterday, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... Yesterday, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 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...
Most views
  The best Prog... 579091
  Tutorial Requ... 511222
  Web Scraping ... 442065
  Newbie with P... 386125
  New Users Int... 378397
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 6914
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aminrony1999 Yesterday
fobby888 Yesterday
digitalboy346 Yesterday
ben9090o Yesterday
ViktoriaMetodieva Yesterday

User Panel Messages

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