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,282
» Latest member: MattCarters
» Forum threads: 38,792
» Forum posts: 175,872

Full Statistics

Online Users
There are currently 35 online users.
» 0 Member(s) | 30 Guest(s)
Bing, Google, Apple, Mojeek

Latest Threads
data fetching for indian ...
Forum: Web Scraping & Web Development
Last Post: drakhsin
1 hour ago
» Replies: 2
» Views: 71
Brazil Python Help to aut...
Forum: Jobs
Last Post: MileHigh303
Nov-21-2025, 08:30 PM
» Replies: 0
» Views: 46
My goal to be hired worki...
Forum: News and Discussions
Last Post: mamta25
Nov-21-2025, 06:15 AM
» Replies: 4
» Views: 1,474
[SOLVED] [BeautifulSoup] ...
Forum: Web Scraping & Web Development
Last Post: Winfried
Nov-20-2025, 02:10 PM
» Replies: 2
» Views: 131
How to Implement Real-Tim...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-20-2025, 06:48 AM
» Replies: 0
» Views: 56
How to put my game loop i...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:59 AM
» Replies: 11
» Views: 6,051
Help with running PvZ Fus...
Forum: Game Development
Last Post: SledgeNE
Nov-20-2025, 04:46 AM
» Replies: 2
» Views: 4,294
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Nov-19-2025, 08:34 PM
» Replies: 3
» Views: 351
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Nov-19-2025, 05:03 AM
» Replies: 1
» Views: 192
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Nov-18-2025, 06:47 PM
» Replies: 2
» Views: 259

 
  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

  IF ELSE Homework Question
Posted by: buckthimble - Mar-29-2020, 05:18 AM - Forum: Homework - Replies (1)

I have the code written to return the below values based on the age a user inputs. I am struggling to come up with an ELSE
statement that will only a..... More

Print this item

  appending list of list
Posted by: glennford49 - Mar-29-2020, 05:18 AM - Forum: General Coding Help - Replies (2)

whats wrong with my code?
i cant get the desired output

[python]
list1=[]
list2=[]
num=[1,2,3,4,5,6]
while(True):
if (len(list2)<=2): # ..... More

Print this item

  Python: how to do multiple qqplot in statsmodel
Posted by: Maxchen106 - Mar-29-2020, 04:27 AM - Forum: General Coding Help - No Replies

Hi,I'm new to python. At moment, I'm trying to do qqplot in statsmodels, with price data from dozens of stocks. apparently I'm on restricted group not..... More

Print this item

  Variable not updating
Posted by: Rayaan - Mar-29-2020, 01:21 AM - Forum: General Coding Help - Replies (3)

I am making a slot machine and I am not very experienced at coding. I am struggling to get the coins variable to update at all when I you either gain ..... More

Print this item

  how do i get rid of next lines in my list()
Posted by: ironpotatoe58 - Mar-28-2020, 11:22 PM - Forum: General Coding Help - Replies (10)

im taking a coding course and im stuck on an assignment,
[python]
fname = input("Enter file name: ")
fh = open(fname)
lst = list()
for line in fh..... More

Print this item

  regular expressions in openpyxl. format
Posted by: picnic - Mar-28-2020, 09:47 PM - Forum: General Coding Help - No Replies

In excell i have a column which contains several words. For my program I need only first one (and only letters). For example, cell -'dog,dogge', but w..... More

Print this item

  Error posting with requests
Posted by: julio2000 - Mar-28-2020, 09:25 PM - Forum: Web Scraping & Web Development - Replies (6)

So I've created a code that posts something on a website. It works perfectly fine when I run it like this (+ other code but that isnt important):
[py..... More

Print this item

  Resources for working with images and video?
Posted by: SheCurvesMobius - Mar-28-2020, 08:43 PM - Forum: General Coding Help - No Replies

Hello all,

I'm new to Python (I've come to it from Processing, p5.js, and Arduino).

I'm interested in using Python to work with images and video..... More

Print this item

  Encoding audio data
Posted by: TheHacker707 - Mar-28-2020, 08:04 PM - Forum: General Coding Help - No Replies

Hello, I want to be able to read the contents of a .wav file, decode it into a list of ints, analyse it/modify it, and then encode it and save it back..... More

Print this item

  when would a frozenset be needed?
Posted by: Skaperen - Mar-28-2020, 06:54 PM - Forum: News and Discussions - Replies (12)

when would a frozenset be needed over a regular set? or why?

Print this item

  Regex: finding if three groups have a value in them
Posted by: Daring_T - Mar-28-2020, 06:01 PM - Forum: General Coding Help - Replies (7)

Hello, I have started learning python via documentation & videos because I trying to make a program that converts episode number and timestamps in a ...... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  data fetching for indian ... 1 hour ago drakhsin drakhsin Web Scraping ...
  Brazil Python Help to aut... 11-21, 20:30 MileHigh303 MileHigh303 Jobs
  My goal to be hired worki... 11-21, 06:15 GnomeSweetGnome mamta25 News and Disc...
  [SOLVED] [BeautifulSoup] ... 11-20, 14:10 Winfried Winfried Web Scraping ...
  How to Implement Real-Tim... 11-20, 06:48 ankitsharma32 ankitsharma32 Web Scraping ...
  How to put my game loop i... 11-20, 04:59 temlotresid6 SledgeNE Game Developm...
  Help with running PvZ Fus... 11-20, 04:46 Barber532 SledgeNE Game Developm...
  Graph Interpolate Difficu... 11-19, 20:34 Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... 11-19, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... 11-18, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python 11-18, 16:13 dutch mamta25 News and Disc...
Most views
  The best Prog... 579246
  Tutorial Requ... 512081
  Web Scraping ... 442176
  Newbie with P... 386288
  New Users Int... 379475
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+ 12109
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
MattCarters Yesterday
drakhsin Yesterday
MileHigh303 11-21
ndx101 11-21
OtiliaBecker 11-21

User Panel Messages

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