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,936
» Latest member: bennyanderson482
» Forum threads: 38,725
» Forum posts: 175,514

Full Statistics

Online Users
There are currently 37 online users.
» 0 Member(s) | 27 Guest(s)
AOL, Bing, Google, Facebook Dev, AOL

Latest Threads
erotic encounters online
Forum: General Coding Help
Last Post: gerrit1985
41 minutes ago
» Replies: 0
» Views: 14
Stephenchers
Forum: General Coding Help
Last Post: Gichardaxora
1 hour ago
» Replies: 0
» Views: 28
Earnestinome
Forum: General Coding Help
Last Post: LhanePulse
2 hours ago
» Replies: 0
» Views: 23
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Gribouillis
2 hours ago
» Replies: 2
» Views: 91
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 3,109
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,522
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 535
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 796
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,893
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 889

 
  Issue with with list
Posted by: Abdirahman - Jan-30-2022, 09:42 AM - Forum: Homework - Replies (4)

I was solving a challenge on Microsoft course on python, you are given output and asked to reproduce it.

here is the given output:

[output]There..... More

Print this item

  I can't open a link with Selenium in Python
Posted by: jao - Jan-30-2022, 04:21 AM - Forum: General Coding Help - No Replies

Hello, I'm having problems with Selenium in Python.

I'm learning Selenium in python and I can't click on a link.

Usei o:
[python]
link.send_ke..... More


Attached Files

Thumbnail(s)
   
Print this item

  help needed running a simple function in pyqt5
Posted by: diodes - Jan-30-2022, 02:06 AM - Forum: GUI - Replies (27)

Hi

I am new to python and would like to get a small function to accept 2 variables and then execute a small function in a pyqt5 window. I have rea..... More

Print this item

  Trouble selecting attribute with beautiful soup
Posted by: bananatoast - Jan-29-2022, 03:23 PM - Forum: General Coding Help - Replies (3)

I'm writing my first program to download images from a website and have run into a roadblock.
I can't seem to get the src attribute in the variable '..... More

Print this item

  Facing Problem while opening a file through command prompt
Posted by: vlearner - Jan-29-2022, 02:13 PM - Forum: General Coding Help - Replies (4)

Hi Everyone,

Here is the code that I have written for reading a file through command prompt.
[python]
from sys import argv

script, filename =..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  erotic encounters online 41 minutes ago gerrit1985 gerrit1985 General Codin...
  Stephenchers 1 hour ago Gichardaxora Gichardaxora General Codin...
  Earnestinome 2 hours ago LhanePulse LhanePulse General Codin...
  C++ program embedding Pyt... 2 hours ago Alexandros Gribouillis General Codin...
  403 Error Yesterday, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Yesterday, 11:22 RonR RonR GUI
  datetime in SQL query. Yesterday, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
Most views
  The best Prog... 576056
  Tutorial Requ... 497548
  Web Scraping ... 440013
  Newbie with P... 383781
  New Users Int... 366306
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+ 12089
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
bennyanderson482 Today
AstoundzSEO Today
tobey12 Today
alexguemez Yesterday
Shadab Yesterday

User Panel Messages

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