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,973
» Latest member: sophielane
» Forum threads: 38,732
» Forum posts: 175,562

Full Statistics

Online Users
There are currently 65 online users.
» 0 Member(s) | 57 Guest(s)
Bing, Google, Mojeek, AOL, Apple, AOL, Facebook

Latest Threads
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
1 hour ago
» Replies: 2
» Views: 123
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
8 hours ago
» Replies: 2
» Views: 767
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 05:45 PM
» Replies: 6
» Views: 805
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 12:59 PM
» Replies: 8
» Views: 510
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 2,888
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,289
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 8,857
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,278
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:17 PM
» Replies: 1
» Views: 1,210
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Sep-26-2025, 01:14 PM
» Replies: 6
» Views: 5,525

 
  Linux: No module named 'wx'
Posted by: PeterLinux - Mar-30-2020, 05:03 AM - Forum: GUI - Replies (23)

When I run my little Python script in the shell, I get the following error:

[error]Traceback (most recent call last):
File "./learn.py", line 6,..... More

Print this item

  why does this happen?can it be bug?
Posted by: ahmet3r - Mar-30-2020, 04:01 AM - Forum: General Coding Help - Replies (1)

>>> print(b"any text")

we have given an input in this way;

output >>> b'any text'


I got SynTaxError when I tried the letter "b" in other le..... More

Print this item

  Class Takes No Arguments
Posted by: horuscope42 - Mar-30-2020, 03:45 AM - Forum: General Coding Help - Replies (4)

[python]
class Car:
"""A simple attempt to represent a car."""

def __int__(self, make, model, year):
"""Initialize the car."""
self.make ..... More

Print this item

  Help For Slot Machine Code
Posted by: Rayaan - Mar-30-2020, 03:36 AM - Forum: General Coding Help - Replies (1)

I am trying to make a slot machine but am getting some errors that I cannot fix. It is giving me the wrong amount of coins for each win and a single d..... More

Print this item

  Calendar program
Posted by: louienyy - Mar-30-2020, 03:18 AM - Forum: Homework - Replies (2)

This is my assignment
calendar program that allows the user to enter a day, month, and year in three separate variables as shown below.

Please ent..... More

Print this item

  Problem with setting variable within a Entry validatecommand
Posted by: kenwatts275 - Mar-30-2020, 02:59 AM - Forum: GUI - Replies (1)

Hello all,
I am trying to set a variable called orig_mb in a validatecommand of an Entry widget.
The validation routine get_records sets [b]o..... More

Print this item

  Text Adventure Game
Posted by: Nave5 - Mar-30-2020, 01:03 AM - Forum: Code sharing - Replies (1)

[python]# Rachele Cort
# Safe Haven
# This code is a survival game where the user must input a decision that will effect the output of the game
pri..... More

Print this item

  Guess the word game help
Posted by: jackthechampion - Mar-30-2020, 12:28 AM - Forum: General Coding Help - Replies (2)

So I have a guess the word game assignment need someone to help me fix it so the asteriks are synced with each word I did it before and just made the ..... More

Print this item

  str.replace affects the if statement!
Posted by: Eslam - Mar-29-2020, 10:01 PM - Forum: General Coding Help - Replies (4)

I have two codes where using str.replace affects the performance of the if statement it lies in.
[i]Can anyone tell me why thi..... More

Print this item

  Concatenate multiple PDFs using python
Posted by: gmehta1996 - Mar-29-2020, 09:45 PM - Forum: General Coding Help - No Replies

I wrote a code to merge pdf files together
Following is my code:
[python]
def merge_pdf(pdf_path,output_pdf):
## Create Logger
logging.basicCo..... More

Print this item

  Help! - How to create a Title for a Reportlab Table
Posted by: crabbylou - Mar-29-2020, 09:14 PM - Forum: General Coding Help - No Replies

Hi, I am trying to create a title for my reportlab table.

[python]
from reportlab.platypus import SimpleDocTemplate, Table, TableStyle, Paragraph,..... More

Print this item

  Combining 2 or more scripts to one.
Posted by: Makada - Mar-29-2020, 08:47 PM - Forum: General Coding Help - Replies (8)

Hi,

Id like to know how i can make one script from 2 or more so i can just run one script with multiple functions.
Below are the 2 scripts which i..... More

Print this item

  copy with new time stamp
Posted by: leveex - Mar-29-2020, 08:46 PM - Forum: General Coding Help - No Replies

Hi,

why does shutil.copyfile as well as os.util copy files and create new timestamp on mac and Linux, but not on windows.
I have created some kind..... More

Print this item

  Can't transmit serial fast Python to Arduino pyserial
Posted by: mRKlean - Mar-29-2020, 08:12 PM - Forum: General Coding Help - No Replies

Hello,

I've been working on developing an auto-turret with two stepper motor axes and an electric solenoid, either on or off. In order to control m..... More

Print this item

  Jupyter Notebook cant start run
Posted by: Alex_Superb - Mar-29-2020, 08:04 PM - Forum: General Coding Help - Replies (8)

Hello! My name is Alexander. I am from Russia. I am only began to learn the programming.
My learning book is - Beginning programming with Pyton by J..... More

Print this item

  converting string object inside a list into an intiger
Posted by: bwdu - Mar-29-2020, 07:43 PM - Forum: General Coding Help - Replies (4)

Hi,guys!

import sys
a = sys.argv
a.remove('C:\\Users\\USER\\Desktop\\app\\as4t.py')

print(a)

C:\Users\USER\Desktop\app>as4t.py 1 2 3
['1..... More

Print this item

  Porting Applesoft BASIC "DECIDE" to Python
Posted by: RobinHood2020 - Mar-29-2020, 06:55 PM - Forum: General Coding Help - No Replies

In the 90s, I inherited an Apple //e computer from my grandfather. One of the books that came with it was called "32 BASIC Programs for the Apple Comp..... More

Print this item

  Noob needing guidance....
Posted by: bako - Mar-29-2020, 06:51 PM - Forum: General Coding Help - No Replies

I keep getting issues trying to do a serial thing. I'm copying the lines from another script that kind of works okay.

Objective: Send serial modem ..... More

Print this item

  WGET + Data Science + Python Programs
Posted by: BrandonKastning - Mar-29-2020, 06:43 PM - Forum: Data Science - No Replies

Alright everyone; This isn't a direct Python question. However it's a pre-requisite for large Data Science Python programs. Using WGET to mirror a web..... More

Print this item

  dict elements are sometimes treated as List and sometimes as String
Posted by: phython_mdr - Mar-29-2020, 05:06 PM - Forum: General Coding Help - Replies (4)

I'm just learning Python by developing an anagram finder.

After a bit of debugging it seems that if I check "if token not in words" then the words di..... More

Print this item

  Pandas_Datareader
Posted by: Morata - Mar-29-2020, 04:33 PM - Forum: General Coding Help - No Replies

Hello, I'm coding in Sublime Text 3 in a Mac OS. My python version is 3.8.2, my panda version is 0.25.0 and the pandas_datareader's version is 0.8.1...... More

Print this item

  unable to update packages
Posted by: russianponchik - Mar-29-2020, 04:18 PM - Forum: General Coding Help - No Replies

hi all.
unable to update packages with command pip install -U because

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, ..... More

Print this item

  Treeview - How to lock columns
Posted by: taratata2020 - Mar-29-2020, 03:30 PM - Forum: GUI - No Replies

Hi every one,

i read this documentation for lock the resizable column and headers too
but not work.

here is my code
[python]
# coding:utf-8..... More

Print this item

  Taking Multiple Command Line Argument Input
Posted by: bwdu - Mar-29-2020, 03:29 PM - Forum: General Coding Help - Replies (6)

Hi,guys! Can you help me with how to take any number of command-line inputs from user without defining any limit? I have tried to generated a few part..... More

Print this item

  Application of dilute matrices
Posted by: chris_drak - Mar-29-2020, 03:04 PM - Forum: General Coding Help - No Replies

I want to create 20,000 random value triples (i, j, val),
belonging to a table of 100 lines x 10,000 columns
with values for the val, from 1 to 99...... More

Print this item

  Keyboard commands and delay/latency
Posted by: RungJa - Mar-29-2020, 01:28 PM - Forum: General Coding Help - No Replies

Hello all,

I'm using this script to send keyboard commands to a game.
It works fine except that my PressKey commands have a delay of 3 or 4 frames..... More

Print this item

  Dictionary iteration and creation a new dictionary from duplicates
Posted by: xrsxlnx - Mar-29-2020, 12:46 PM - Forum: General Coding Help - Replies (2)

Hello there,
need an explanation and help how to write a script.
I'm fetching data from OpenStack cinder volumes API. The result is a dictionary wit..... More

Print this item

  zlib decompress error: invalid code lengths set / invalid block type
Posted by: DreamingInsanity - Mar-29-2020, 12:18 PM - Forum: General Coding Help - No Replies

[size=x-small](this is sort of about python, but it might get slightly off topic. I couldn't find anywhere else it would make sense to post thi..... More

Print this item

  Generate only one random number for many tries
Posted by: Bhavika - Mar-29-2020, 12:03 PM - Forum: General Coding Help - Replies (2)

Normally we use

import random
print(random.randint(1000, 9999)
To generate a number in the range. But I want a number which we..... More

Print this item

  Not able to figure out how to create bar plot on aggregate data - Python
Posted by: darpInd - Mar-29-2020, 11:36 AM - Forum: Data Science - Replies (1)

Hello,

I have been trying to use a series that I have got using aggregate function and plot a bar plot but not able to get it. I have quickly got t..... More

Print this item

  TextIOWrapper.tell() with Python 3.6.9 in context of 0D/0A
Posted by: fschaef - Mar-29-2020, 09:17 AM - Forum: General Coding Help - No Replies

When running:

[python] fh = open("tmp.txt", "r")
while 1 + 1 == 2:
tmp = fh.read(1)
if not tmp: break
print(fh.tell()..... More

Print this item

  Running Flask web on other IP than 127.0.0.1
Posted by: popolon59 - Mar-29-2020, 08:51 AM - Forum: Web Scraping & Web Development - Replies (1)

HI,

I am new in Python and Flask (<1 year exp.).

I followed a tutorial for authentication in Flask there: ..... More

Print this item

  delete
Posted by: wei321 - Mar-29-2020, 08:15 AM - Forum: Homework - No Replies

delete

Print this item

  **kwargs question
Posted by: DPaul - Mar-29-2020, 07:48 AM - Forum: General Coding Help - Replies (10)

Hi,

I have been searching books and the internet to find a useful example for **kwargs in a def() function.
All i find is that you give a series o..... More

Print this item

  [split] import PIL dont work
Posted by: vedansh - Mar-29-2020, 06:00 AM - Forum: General Coding Help - Replies (1)

Pillow is not installing
can anybody guide me on anydesk
Thanks!


any online editor for python with pre installled libraries

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Integer Factorization Too... 1 hour ago fosuwxb buran Code sharing
  My goal to be hired worki... 8 hours ago GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... Yesterday, 17:45 llarkin6 noisefloor General Codin...
  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... 577335
  Tutorial Requ... 500650
  Web Scraping ... 440999
  Newbie with P... 385037
  New Users Int... 369526
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 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
sophielane Yesterday
Oscar0057 Yesterday
Cromulent Yesterday
PhamMaria Yesterday
Zephlonix Yesterday

User Panel Messages

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