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,394
» Latest member: braillescribe
» Forum threads: 38,822
» Forum posts: 176,021

Full Statistics

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

Latest Threads
Willing to pay for help w...
Forum: General Coding Help
Last Post: braillescribe
25 minutes ago
» Replies: 2
» Views: 27
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 06:21 PM
» Replies: 1
» Views: 97
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Yesterday, 04:06 PM
» Replies: 9
» Views: 250
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,073
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,909
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 149
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 85
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 154
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,298
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 120

 
  Meltdown Mitigation (operators + conditionals) beware: Exercism potential spoiler
Posted by: Drone4four - Jan-29-2022, 12:23 PM - Forum: Homework - Replies (5)

I’m working on a coding challenge courtesy of exercism.org. It’s self-paced study courseware. Even though it is not for-credit, I’d still like to pres..... More

Print this item

  Tkinter Image buttons
Posted by: menator01 - Jan-29-2022, 11:32 AM - Forum: Code sharing - Replies (1)

Using Yoriz's BoolImage class from this post, I made an example of using mu..... More

Print this item

  Frames layout adding widgets
Posted by: klatlap - Jan-29-2022, 12:51 AM - Forum: GUI - Replies (7)

Hi, i have been struggling with this for days looking at tutorial but just can't get it, i am creating an applications, my thought is to create app, t..... More

Print this item

  [] vs *[]
Posted by: hshivaraj - Jan-28-2022, 11:34 PM - Forum: General Coding Help - Replies (3)

Hey guys

what the different between sending a send as [] and *[]? For instance

[python]def main():
x = [1] * 10
print(list(chain(*x)))..... More

Print this item

  The infinite sequence of prime numbers
Posted by: Gribouillis - Jan-28-2022, 09:57 PM - Forum: Code sharing - Replies (4)

[python]
#!/usr/bin/env python
# SPDX-FileCopyrightText: 2022 Member Gribouillis of www.python-forum.io
#
# SPDX-License-Identifier: MIT

__vers..... More

Print this item

  Looking for some general advice
Posted by: Extra - Jan-28-2022, 09:40 PM - Forum: General Coding Help - Replies (5)

Saw this cool 1985 Home Automation system GUI (Link) and I was thinking about replicating it. I..... More

Print this item

  ValueError: not enough values to unpack (expected 4, got 1)
Posted by: vlearner - Jan-28-2022, 05:47 PM - Forum: General Coding Help - Replies (2)

while trying to execute the program I got the error mention in the subject.
kindly help me in this, I am new to argv concept
[python]
from sys impo..... More

Print this item

  Information about api.sunrise-sunset please
Posted by: bill_z - Jan-28-2022, 03:35 PM - Forum: General Coding Help - Replies (20)

I'm having some difficulties understanding this python code I found on the Internet. It is suppose to return sunrise and sunset time relative the the..... More

Print this item

  How to fine tune cutecharts?
Posted by: Gigux - Jan-28-2022, 03:02 PM - Forum: General Coding Help - Replies (1)

Hello,
I have made a graph with cutecharts but how can I customize the plot? Specifically, how:

  1. do I add a horizontal dashed black li..... More

Print this item

  Escape indentation
Posted by: Frankduc - Jan-28-2022, 02:25 PM - Forum: General Coding Help - Replies (11)

Hello,

Its probably the wrong way to do this, but i am trying to print my list and because of the if statement to get rid of the false returned, i ..... More

Print this item

  "while" loop is looping back too early
Posted by: mangurian - Jan-28-2022, 04:08 AM - Forum: General Coding Help - Replies (1)

I have some code with a "while" loop. The loop encompasses fewer instructions than I want. In other words, it loops back too early. I am a hobbiest an..... More

Print this item

  Clearing an asyncio queue if it's empty
Posted by: H84Gabor - Jan-28-2022, 02:25 AM - Forum: General Coding Help - No Replies

Hi all,

I was wondering if anyone would know the simplest way (I don't know any) to check if an asyncio queue is empty and how to clear it. I use t..... More

Print this item

  Strange write()/File behavior
Posted by: kaega2 - Jan-28-2022, 01:09 AM - Forum: General Coding Help - Replies (2)

Hello everyone,
I ran into some strange behavior I don't understand while completing this online course. I was hoping you could help me understand it..... More

Print this item

  Trouble with a turtle movement assignment.
Posted by: JosephSondgeroth - Jan-27-2022, 10:02 PM - Forum: Homework - Replies (1)

In this assignment we are supposed to put ten balls in a list and have the bounce around in a set area defined by a border. We then make another turtl..... More

Print this item

  error "list object has no attribute transpose()"
Posted by: usercat123 - Jan-27-2022, 07:06 PM - Forum: Data Science - Replies (4)

Hi,

I am trying to build a neural network this is my code

[python]
import numpy as np
import random

class QuadraticCost(object):
@stat..... More

Print this item

  Fatally screwed my Data Base up-maybe?
Posted by: hammer - Jan-27-2022, 07:05 PM - Forum: General Coding Help - Replies (4)

While in DB Browser I think by " save project" vs just "write changes" and close, i have created a situation to where my application can not find the..... More

Print this item

  Update plot
Posted by: frohr - Jan-27-2022, 06:40 PM - Forum: General Coding Help - Replies (3)

HI all,
I am reading data from serial port to array and I want have one window with one button and two charts. If I click on the button, read serial ..... More

Print this item

  Iterating Help
Posted by: Joeylax54 - Jan-27-2022, 06:01 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello,

I've been working with some open API from ESPN located here:
https://st[url=https://python-forum.io/thread-36201.html]..... More

Print this item

  Screen capture opencv - grab error
Posted by: Kalman15 - Jan-27-2022, 12:05 PM - Forum: General Coding Help - Replies (1)

I’m trying to capture frames of all or portion of the screen with Python. I reviewed the previous questions asked in the stackoverflow. When I run the..... More

Print this item

Shocked pyusb question
Posted by: DPaul - Jan-27-2022, 09:50 AM - Forum: Bar - Replies (2)

Hi,
I am attempting to find the PID and VID from inserted USB devices.

I installed pyusb.
I also found libusb, because without it, no info.
The..... More

Print this item

  How to split monthly data smoothly into days?
Posted by: AlekseyPython - Jan-27-2022, 09:20 AM - Forum: Data Science - Replies (1)

have statistical reports, that are presented monthly. I would like to present the same data daily (keeping the total amount for the month). Of course,..... More

Print this item

  Controlling what get outputted to stdout when running external commands
Posted by: Daring_T - Jan-27-2022, 04:20 AM - Forum: General Coding Help - Replies (4)

I am using Python to compress video files via Handbrake and subprocess. When I run my current code the HandbrakeCli output still outputs to stdout. Is..... More

Print this item

  2-dataframe, datetime lookup problem
Posted by: Mark17 - Jan-27-2022, 01:02 AM - Forum: General Coding Help - No Replies

Please see the attached screenshot:

   

What I'm trying to do is go down df['Period_End_Date'], take those dates and find the resp..... More

Print this item

  My minoconda3 install is not working.
Posted by: Led_Zeppelin - Jan-26-2022, 09:02 PM - Forum: General Coding Help - Replies (1)

I was working on a new python program that would predict Formula_1 season winners.

I tried to open the anaconda command line from my Windows 10 a..... More

Print this item

  confusion using the import statement
Posted by: barryjo - Jan-26-2022, 05:19 PM - Forum: GUI - Replies (4)

What is the differences between the following statements?
[python]
1) import tkinter
2) import tkinter as tk
3) from tkinter import *
4) from..... More

Print this item

  how to change font size
Posted by: barryjo - Jan-26-2022, 05:08 PM - Forum: GUI - Replies (4)

I have a button defined below.

What does 40 mean? Is there a 40 font?
How do I change the font size. i.e. maker it larger or smaller?
[python]bu..... More

Print this item

  File "<string>", line 19, in <module> error is related to what?
Posted by: Frankduc - Jan-26-2022, 03:59 PM - Forum: General Coding Help - Replies (9)

Hello,

I am trying to understand what is going on:

[python]class Portfolio:
def __int__(self):
self.holdings = {} #key = ticker, ..... More

Print this item

  Doctesting a function which prints a students name along with the maximum mark scored
Posted by: sean1 - Jan-26-2022, 11:58 AM - Forum: General Coding Help - Replies (5)

How would I go about doctesting this? Output is following for e.g Maths Sam - 98

[python]
def Maximum():
while True:
print("Maximum ..... More

Print this item

  Get string from entry and use it in another script
Posted by: amdi40 - Jan-26-2022, 08:29 AM - Forum: GUI - Replies (1)

Hello, I am trying to insert a file path in an entry in my GUI. I then want to save this entry, as I need the path in another script that I have made...... More

Print this item

  tkinter layout problem
Posted by: agentperry - Jan-26-2022, 07:34 AM - Forum: General Coding Help - Replies (4)

Can someone help me with my project. I'm trying to make my label and entry side by side but it always go down vertically and it does not work very wel..... More


Attached Files

Thumbnail(s)
   
Print this item

  Project structure with a virtual environment
Posted by: gdbengo - Jan-25-2022, 11:44 PM - Forum: General Coding Help - Replies (1)

[output]Hello to all,
Could you help me resolve the following issue: I'm having a project vscode where i created a folder containing a virtual enviro..... More


Attached Files

Thumbnail(s)
   
Print this item

Exclamation Jupyter Notebook - Help Needed!
Posted by: eyadfr - Jan-25-2022, 10:15 PM - Forum: Data Science - Replies (1)

Hello!!

I have a dataset with the a dimension of [38355, 257] , and it has 14 classes. I tried to split the data into (70%, 15%, 15%) for training..... More

Print this item

  Help with Mic and Code
Posted by: Extra - Jan-25-2022, 07:19 PM - Forum: General Coding Help - Replies (1)

Hello,

I'm trying run my code on my Rpi 3 Which uses Debian OS. Prior to this, my code was running on my Rpi 4 which used Manjaro (Arch-linux) as a..... More

Print this item

  Beginner Help!
Posted by: mahgnibb - Jan-25-2022, 05:21 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi All,

Just starting off dabbling with python, so apologies for beginner question.

I have a simple query need to scrape web pages and return te..... More

Print this item

  Module 'time' has no attribute 'clock'
Posted by: Sophie - Jan-25-2022, 05:05 PM - Forum: General Coding Help - Replies (4)

Hi everyone,

I'm posting here, in the hope that you may be able to help me.

I try to run a .py file with Spyder v 4.2.5.

When I try to run t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Willing to pay for help w... 25 minutes ago braillescribe braillescribe General Codin...
  How to Integrate External... Yesterday, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... Yesterday, 16:06 eedjsa eedjsa General Codin...
  IP address for users Yesterday, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... Yesterday, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
Most views
  The best Prog... 580382
  Tutorial Requ... 519224
  Web Scraping ... 442774
  Newbie with P... 386958
  New Users Int... 386331
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
braillescribe Today
aurelio12282025 Today
bejaminmaarleyo1374 Today
taylorlitleoz476 Today
desy845 Today

User Panel Messages

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