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,855

Full Statistics

Online Users
There are currently 40 online users.
» 1 Member(s) | 35 Guest(s)
Bing, Google, Mojeek, AOL, aminrony1999

Latest Threads
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
37 minutes ago
» Replies: 4
» Views: 114
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: Tuurbo46
3 hours ago
» Replies: 2
» Views: 103
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
3 hours ago
» Replies: 2
» Views: 96
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 140
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 337
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 59
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 94
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 329
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 181
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 292

 
  Do you find this tech stack search helpful?
Posted by: lisajt - Nov-13-2020, 09:00 AM - Forum: Jobs - No Replies

Hi Python Devs!

We have worked very hard in the past years to create a completely new kind of job search to help tech/webdevelopment people to find..... More

Print this item

  I have an index error inline 76 but I write the program in a way that cant reach tha
Posted by: abbaszandi - Nov-13-2020, 07:22 AM - Forum: General Coding Help - Replies (2)

##I have an index error inline 76 but I write the program in a way that cant reach that index
[python]
import numpy as np
h=500+29/2
kc=50
ks=5..... More

Print this item

  Creating list of lists from generator object
Posted by: t4keheart - Nov-13-2020, 04:12 AM - Forum: General Coding Help - Replies (1)

I have a generator object 'results', which when looping through returns a list of dictionaries. I'm trying to convert this into a list of lists, so I ..... More

Print this item

  Waiting and listening
Posted by: test - Nov-13-2020, 03:18 AM - Forum: General Coding Help - Replies (2)

Hello!
I have been writing a program which listens for any keyboard input by the user. If specific combinations are input, certain tasks are performe..... More

Print this item

Question Use radiobuttons to determine a total charge
Posted by: SalsaBeanDip - Nov-13-2020, 02:07 AM - Forum: GUI - Replies (2)

Hello. I am trying to write a GUI program that calculates total ticket prices. It allows the user to select a ticket category from a set of radiobutto..... More

Print this item

  How to Locate an Attribute's Parent Object?
Posted by: calvinsomething - Nov-12-2020, 09:30 PM - Forum: General Coding Help - Replies (5)

Hey! So I'm using Tkinter to make a GUI for Sudoku; just as a project to get better. Throughout my functions I am passing a variable for the sudoku sq..... More

Print this item

  search for more than one word using lambda
Posted by: illmattic - Nov-12-2020, 08:30 PM - Forum: General Coding Help - Replies (2)

Hello,

I have this code:

sga = list(filter(lambda x: 'costs' in x, income.index))
trying to grab all index labels with the wor..... More

Print this item

  frustrating practice
Posted by: taubee - Nov-12-2020, 07:46 PM - Forum: Homework - Replies (9)

Morning,

I'm old and I'm new to python. I am in a course that is using "Starting Out with Python" by Tony Gaddis and I have run into a problem w..... More

Print this item

  cx_Oracle.DatabaseError: Error while trying to retrieve text from error ORA-01804
Posted by: rajeshparadker - Nov-12-2020, 07:34 PM - Forum: General Coding Help - No Replies

Hi All,

I am getting oracle connectivity error while connecting from python command prompt or by using editor. Able to connect to Oracle by using s..... More

Print this item

  Tkinter
Posted by: Tsushida - Nov-12-2020, 06:44 PM - Forum: GUI - Replies (2)

So i just started programming in python in VScode. I successfully installed tkinter, but after trying to create a window vscode ditched me and said th..... More

Print this item

  python pandas
Posted by: andreas30298 - Nov-12-2020, 05:45 PM - Forum: Homework - Replies (2)

Hi

how can i get the dates with my max value?
and after find the avrage value of the list.

then modify the list to only show the days(01.07.2019)w..... More

Print this item

  shuffle a nested list
Posted by: giorgosmarga - Nov-12-2020, 04:09 PM - Forum: General Coding Help - Replies (11)

Hello can someone explain to me why this code doesnt work out
[python]
import random
def randomlist(nums):
emptylist = []
for j in range(..... More

Print this item

  Run some subrocesses at a time
Posted by: OmegaDoom - Nov-12-2020, 03:47 PM - Forum: General Coding Help - No Replies

Hello.

Lets say we need to run 100-1000 subprocesses to do some work. Each subprocess is some kind of app, for example zip.

it is not good to sp..... More

Print this item

  Keep Application running after Python script ends
Posted by: PEGylated_User - Nov-12-2020, 03:27 PM - Forum: General Coding Help - No Replies

I have a program that creates label templates in Microsoft Word and I would like the created word document to remain open after the code runs, but it ..... More

Print this item

  How to use su in a script
Posted by: edlentz - Nov-12-2020, 02:56 PM - Forum: General Coding Help - Replies (3)

I have a script that will run some system commands and they need root level access. I do not want to give the user root access. I want the user to j..... More

Print this item

  How to split dataframe object rows to columns
Posted by: Mekala - Nov-12-2020, 02:31 PM - Forum: General Coding Help - Replies (1)

Hi,
I have below data frame (multiple rows): I want to split rows at dilimiter to columns


[python]df_obj:
20;12;AA;2020/11/05 10:23:13;2020/11/..... More

Print this item

Sad Problem with Unittest
Posted by: mhanusek - Nov-12-2020, 01:48 PM - Forum: General Coding Help - Replies (1)

Hello!
I have a problem with calling method - assertTrue.

My code:
[python]
#!/usr/bin/env python3

import unittest

class MyTest(unittest.T..... More

Print this item

  broadcasting euclidean distance error
Posted by: glennford49 - Nov-12-2020, 11:26 AM - Forum: General Coding Help - Replies (1)

i have this code, i tried to calculate euclidean distance on each element on list1
it throws an error if list1 has 2 elements, any idea on this?
[p..... More

Print this item

  Double click on touch screen issue
Posted by: ATARI_LIVE - Nov-12-2020, 10:36 AM - Forum: General Coding Help - Replies (4)

When I use bind(<Double-Button-1>, run_function) on the TOUCHSCREEN.

the mouse does works but not touchscreen due fat-fingers.

The double click ..... More

Print this item

  Select a value from Dataframe
Posted by: mfkzolo - Nov-12-2020, 09:02 AM - Forum: General Coding Help - Replies (2)

Hi,

How do I select a value from a column in my df, a value that start with a character, small or capital followed by numbers.

This is my code ..... More

Print this item

  Saving text file with a click: valueerror i/o operation on closed file
Posted by: vizier87 - Nov-12-2020, 08:32 AM - Forum: General Coding Help - Replies (5)

Hi guys, first post here. I hope I'm in the right place, since it seems to be more of a Python issue than a PyQt issue.

I've been trying to import ..... More

Print this item

  Flask files running order
Posted by: TomasAm - Nov-12-2020, 08:19 AM - Forum: General Coding Help - No Replies

I have blog.py inside my blog folder for Flask application.

blog.py contains:

from app import app
Inside [b]blo..... More

Print this item

  Can we access instance variable of parent class in child class using inheritance
Posted by: akdube - Nov-12-2020, 08:07 AM - Forum: General Coding Help - Replies (3)

I am pasting my code below:-

[python]
class A:
def __init__(self,i=100):
self.i=100


class B(A):
def __init__(self,j=0): ..... More

Print this item

  Python School Project
Posted by: andreas30298 - Nov-12-2020, 05:31 AM - Forum: Homework - Replies (2)

Woking on a School Project and i'm a bit stuck.
anyone got some suggestion how i can solve this?

with regards Andreas

task:
1: add alle the va..... More

Print this item

  IndexError in Array while trying to do machine learning
Posted by: Mariaoye - Nov-12-2020, 12:35 AM - Forum: Data Science - No Replies

Hi All,

I am trying to predict income(70000+) based on specific categorical fields (Sex and Highest Cert,dip,deg) based on python code below.

I..... More

Print this item

  python nonetype variable
Posted by: fabiodurgante - Nov-12-2020, 12:29 AM - Forum: General Coding Help - Replies (5)

hello I have the following in a threaded function executes several at the same time
profit is global variable

profit += result
profit = round (pr..... More

Print this item

  Need learning resources for Python distribution
Posted by: gretchenfrage - Nov-11-2020, 10:06 PM - Forum: General Coding Help - Replies (2)

Hi everyone. I basically need to get a somewhat deep understanding of how distribution works in python, particularly "eggs", sdists, and virtual envir..... More

Print this item

  password exit
Posted by: edlentz - Nov-11-2020, 09:49 PM - Forum: General Coding Help - No Replies

Hi I am pretty new at python and this is out of my knowledge so far. I have a script that I am using to run commands on a Centos system. The command..... More

Print this item

  How to calculate a months' 1st, 4th, 7th day and also 1st again?
Posted by: cananb - Nov-11-2020, 08:32 PM - Forum: General Coding Help - Replies (3)

Hi everyone, I just started how to learn to code.
I am trying to write a program that should count the days an athlete decides to run once every thre..... More

Print this item

  How to calculate a months' 1st, 4th, 7th day and also 1st again?
Posted by: cananb - Nov-11-2020, 08:26 PM - Forum: Homework - Replies (1)

Hi everyone, I just started how to learn to code.
I am trying to write a program that should count the days an athlete decides to run once every thre..... More

Print this item

  How to find difference between elements in a list? Using beginner Basics only.
Posted by: Anklebiter - Nov-11-2020, 07:29 PM - Forum: Homework - Replies (8)

Hello,

I have been going crazy on a portion of an assignment, I am hoping to get help with. Only using Basic begginer python coding...Functions,..... More

Print this item

  Pandas - compute means per category and time
Posted by: rama27 - Nov-11-2020, 06:52 PM - Forum: Data Science - Replies (7)

Hi, I have a following problem. I need to compute means per category and time (in my df named as a "round"). My simplified df looks like bellow:

[pyt..... More

Print this item

  help me understand where this comes from
Posted by: bthurston - Nov-11-2020, 06:34 PM - Forum: General Coding Help - Replies (6)

hello all, Im a noob to python and raspberry pi. Ive started playing around with some of the modules. the sensor is AM2302 im using adafuit dht librar..... More

Print this item

  Banking API
Posted by: aster - Nov-11-2020, 06:00 PM - Forum: News and Discussions - Replies (3)

Hello,

I am not a professional programmer.
I own a small business (we are about 10 people), and I have been using python for a few years to ma..... More

Print this item

Photo sigma, pi, exercise
Posted by: krnkrnkrn - Nov-11-2020, 04:11 PM - Forum: Homework - Replies (1)

Write programs (for and while) that calculate the sum (product) (using inconditional statement, omit elements that generate the error)

The print st..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [SOLVED] Access keys and ... 37 minutes ago Winfried Winfried General Codin...
  Graph Interpolate Difficu... 3 hours ago Tuurbo46 Tuurbo46 General Codin...
  PermissionError: [Errno 1... 3 hours ago 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... 579057
  Tutorial Requ... 511079
  Web Scraping ... 442051
  Newbie with P... 386101
  New Users Int... 378279
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 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aminrony1999 Today
fobby888 Today
digitalboy346 Today
ben9090o Today
ViktoriaMetodieva Today

User Panel Messages

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