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,974
» Latest member: Williamcaurb
» Forum threads: 38,732
» Forum posts: 175,558

Full Statistics

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

Latest Threads
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
50 minutes ago
» Replies: 2
» Views: 719
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
7 hours ago
» Replies: 6
» Views: 752
Integer Factorization Too...
Forum: Code sharing
Last Post: fosuwxb
8 hours ago
» Replies: 0
» Views: 70
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 470
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,849
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,249
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,816
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,225
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,177
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,481

 
  can't assign to operator
Posted by: Calli - Apr-13-2020, 01:38 PM - Forum: Web Scraping & Web Development - Replies (2)

I am trying to scrap this jokes from the website but i get the assignment operator error
[python]

from urllib.requests import urlopen as uReq
fro..... More

Print this item

  Creatiing a tree from an xml element and all its descendant
Posted by: arbiel - Apr-13-2020, 01:31 PM - Forum: Code sharing - Replies (1)

Hi

Sorry for the disturbance. My trouble was that I had some difficulties for creating an xml document from an element and its descendants. I actua..... More

Print this item

  Python - Keyboard module - Threading problem
Posted by: ppel123 - Apr-13-2020, 01:02 PM - Forum: General Coding Help - Replies (1)

Hi everyone,
I am working on an app and trying to create a corrector and I am using keyboard module for the correction.
I have created two classes, ..... More

Print this item

  NOI 2013 Q1
Posted by: smgfour - Apr-13-2020, 12:47 PM - Forum: Homework - Replies (10)

The question for this problem is below:

A scientist wants to study how the rising sea level changes the landscape, in particular, how it changes th..... More

Print this item

  Lambda function recursion error
Posted by: DeadlySocks - Apr-13-2020, 11:37 AM - Forum: General Coding Help - Replies (1)

So basically i am having trouble with the following Code. Whenever i run it, in the 3rd iteration the programm throws a RecursionError.
[python]
lst..... More

Print this item

  Networking Help
Posted by: iMuny - Apr-13-2020, 11:31 AM - Forum: Networking - Replies (1)

Hello everyone, i hope everyone is fine. This is not specifically a Python issue per se, however, I'm lacking a bit of networking understanding and am..... More

Print this item

  Redirect to __stdout__ fails in IDLE shell
Posted by: Pavel_47 - Apr-13-2020, 11:00 AM - Forum: General Coding Help - Replies (1)

Hello,
After redirecting to a file I can't return back.
I used sys.stdout = sys.__stdout__
but still no any output to shell window.

Print this item

  Take particular symbol from textbox help
Posted by: samuelbachorik - Apr-13-2020, 09:37 AM - Forum: General Coding Help - Replies (3)

Hello dear users, i have trouble with getting particular symbol from my textbox. For example i have in my textbox -> 5 + 5m

And i want to ask yo..... More

Print this item

  What is the best way to return these 4 integer values?
Posted by: Pedroski55 - Apr-13-2020, 08:48 AM - Forum: General Coding Help - Replies (4)

I have a little Python program to resize pdfs. Works OK for my purposes.

I want to cut it up into functions.

The first function takes the pdf and sp..... More

Print this item

  Powerball List
Posted by: jackthechampion - Apr-13-2020, 07:13 AM - Forum: Homework - Replies (1)

So I need to make a power ball list heres the details

Write a program that simulates a mini game of powerball. In this game, a ticket consists of 3..... More

Print this item

  Return values for use outside of function
Posted by: willowman - Apr-13-2020, 06:50 AM - Forum: General Coding Help - Replies (1)

Hi all,

I have written a function which contains a loop which gradually builds a displacement vector. I would like to plot this generated displace..... More

Print this item

  Repition structures?
Posted by: Katididit - Apr-13-2020, 03:12 AM - Forum: Homework - Replies (3)

Hey all, I am trying to finish this code off, but I am stuck with how to add in if the T or S is false and also getting the loop to work properly with..... More

Print this item

  Simple time comparison
Posted by: superwave33 - Apr-13-2020, 01:47 AM - Forum: Homework - Replies (5)

Hi,

I have been struggling with this for 2 days and can't seem to find the recipe.
I simply want to compare the current time with two time boun..... More

Print this item

  Taking brackets out of list in print statement
Posted by: pythonprogrammer - Apr-13-2020, 01:25 AM - Forum: General Coding Help - Replies (3)

How do I take brackets out of multiple lists in a print statement. Say I have the following lists of numbers:

[python]j = [2,5]
k = [4,6]
e = [7,..... More

Print this item

  Tkinter: increasing numbers and Radiobutton issue
Posted by: PeroPuri - Apr-13-2020, 01:06 AM - Forum: GUI - Replies (1)

Hi everyone,
I'm having a bit of trouble with my code using tkinter:

[python]from openpyxl import *
from tkinter import *
from datetime import d..... More

Print this item

  Touble with subprocess
Posted by: jake9wi - Apr-12-2020, 11:47 PM - Forum: General Coding Help - Replies (6)

Hello, I am trying to write a script that calls a program to play audio and then restart the program so often.

However the program is not being ..... More

Print this item

  Help with sudoku
Posted by: Mondata - Apr-12-2020, 07:00 PM - Forum: General Coding Help - Replies (4)

Just for learning purposes, I am trying to make a script that returns the candidates of every empty cell (I have just put 0) in a sudoku.

I just tr..... More

Print this item

  Confused by 'break' in the official documents
Posted by: Chuck_Norwich - Apr-12-2020, 06:22 PM - Forum: General Coding Help - Replies (2)

Found these examples in the documentation.Was looking up For/Else loops. They both use a break statement. Was a bit confused why the break statement w..... More

Print this item

  / token in function parameterlist
Posted by: tpourjalali - Apr-12-2020, 06:17 PM - Forum: General Coding Help - Replies (1)

So I'm learning python by just reading documentation after I decided that none of the books and courses out there are good enough. Here's the question..... More

Print this item

  Arithmetic and python
Posted by: pythonuser1 - Apr-12-2020, 06:05 PM - Forum: Homework - Replies (1)

Hello Guys,

I have a issue with this problem :

nbEleveEcole : number of students in the school. First input
nbClasse : number of classes. Secon..... More

Print this item

  make a turtle object an image
Posted by: Agusben - Apr-12-2020, 04:40 PM - Forum: General Coding Help - Replies (2)

i have a program that plots a parametric equation and then saves the drawing to a jpg image file.

[python]
import turtle
from math import cos,si..... More

Print this item

  Opening a file
Posted by: amitsinbox - Apr-12-2020, 03:32 PM - Forum: General Coding Help - Replies (6)

when I am trying to open a file in pthton 3 jupytor notebook, I get following error: what wrong am I doing?

[python]file1=open("\C:\Users\Amit Kum..... More

Print this item

  POST request with form data issue web scraping
Posted by: hoff1022 - Apr-12-2020, 03:03 PM - Forum: Web Scraping & Web Development - Replies (1)

Please help. I'm trying to create a POST request on an .asp site that requires cookies, but the way I handle them seems not to return anything. Read t..... More

Print this item

  ошибка в скрипте
Posted by: vlrubl777 - Apr-12-2020, 02:44 PM - Forum: General Coding Help - Replies (4)

Windows 7 Python 3.8
https://github.com/geniusprodigy/mnemonic-to-wif
скрин ошибки [url=..... More

Print this item

  Question regarding local and global variables
Posted by: donmerch - Apr-12-2020, 02:02 PM - Forum: General Coding Help - Replies (12)

I'm relatively new to learning Python. I've been reading "Mastering Python". In chapter 2 on Variables it provides an example similar to this:
[pytho..... More

Print this item

  AttributeError: 'NoneType' object has no attribute 'bind'
Posted by: faszination_92 - Apr-12-2020, 01:43 PM - Forum: GUI - Replies (2)

Hey guys, I'm pretty new at coding kivy and think one of you could help me with a simple solution. I want to include the variable named [show_text] in..... More

Print this item

  identify un-managed switches in network
Posted by: c5244714 - Apr-12-2020, 01:12 PM - Forum: Networking - No Replies

hello all,
one of our major problem are un-managed switches connected by users in our edge switches.
all or access switches and distribution switche..... More

Print this item

  Help: for loop with dictionary and nested lists
Posted by: mart79 - Apr-12-2020, 12:51 PM - Forum: General Coding Help - Replies (1)

Hi all,

Can you help me with the following double for loop, writing it more cleanly and make it work for 'lc3'

[python]
old = 'car'
new = 'scooter'
..... More

Print this item

  Generate PDF + QR code?
Posted by: Winfried - Apr-12-2020, 12:40 PM - Forum: General Coding Help - Replies (3)

Hello,

I know nothing about PDF and QR code.

I'd like to write a Python3 script to avoid filling forms over the web.

The script would…
1. Re..... More

Print this item

  Importing Dataset
Posted by: PythonGainz - Apr-12-2020, 12:19 PM - Forum: Data Science - Replies (1)

Howdie!

Not sure if I can post this here, or if it belongs to data analysis.

So I'm importing a dataset and defining x and y.

Here's the code..... More

Print this item

  create a function that can count
Posted by: polk203 - Apr-12-2020, 11:53 AM - Forum: Homework - Replies (1)

hello guys im a french student and I have a question:

How could i create a function that can count how mani times i used it please ? I don't have a..... More

Print this item

  How to overwrite file
Posted by: SriRajesh - Apr-12-2020, 11:29 AM - Forum: General Coding Help - Replies (3)

Hi,
I am writing some log file, and when I run each time I want to flush out everything (don't want to keep any previous data) I use the below code, b..... More

Print this item

  lHelp! Lists
Posted by: bwdu - Apr-12-2020, 10:24 AM - Forum: General Coding Help - Replies (1)

[python]a = [(2, 5), (1, 2), (4, 4), (2, 3), (2, 1)]

lastelements = []
for i in range(len(a)):
for t in a[i]:
lastelements.append(t[..... More

Print this item

  Python - change variable type during program execution
Posted by: ple - Apr-12-2020, 08:33 AM - Forum: General Coding Help - Replies (1)

Why python allows to change the type of a variable during program execution.
Example:
sample_var = "test"; (type->string)
sample_var = 1; (typ..... More

Print this item

  Tkinter loops
Posted by: mattemio - Apr-12-2020, 07:36 AM - Forum: GUI - Replies (4)

Hi guys!
I'm an absolute newbie in python.
I have this problem with tk inter:

[python]
class months():
def __init__ (self,name,days_of_the..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  My goal to be hired worki... 50 minutes ago GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 7 hours ago llarkin6 noisefloor General Codin...
  Integer Factorization Too... 8 hours ago fosuwxb fosuwxb Code sharing
  Comparing 2 100GB Drives/... Yesterday, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... 09-26, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... 09-26, 09:50 P212 Biks News and Disc...
Most views
  The best Prog... 577314
  Tutorial Requ... 500563
  Web Scraping ... 440984
  Newbie with P... 385020
  New Users Int... 369478
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+ 12090
buran 8176
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Williamcaurb Yesterday
sophielane Yesterday
Oscar0057 Yesterday
Cromulent Yesterday
PhamMaria Yesterday

User Panel Messages

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