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,983
» Latest member: bimosora
» Forum threads: 38,734
» Forum posts: 175,572

Full Statistics

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

Latest Threads
create ocr to detect lice...
Forum: General Coding Help
Last Post: Pedroski55
58 minutes ago
» Replies: 1
» Views: 19
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Pedroski55
11 hours ago
» Replies: 5
» Views: 161
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,033
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 447
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,080
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,144
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 819
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,104
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,546
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,134

 
  How to execute Python code
Posted by: leemao - Dec-21-2019, 10:25 AM - Forum: General Coding Help - Replies (2)

Hi

How to execute the code in this link https://github.com/puetsua/pyRIP ? please

I tried but there is no output

Print this item

  Doesn't work function pyautogui.typewrite()
Posted by: aliyevmiras - Dec-21-2019, 08:55 AM - Forum: General Coding Help - Replies (1)

Hello, i'm learning pyautogui library and was faced with a problem with typewrite function. It doesn't type anything but the other functions of the li..... More

Print this item

  Error in configparser
Posted by: fullstop - Dec-21-2019, 07:45 AM - Forum: General Coding Help - Replies (12)

I have a configuration file (abc.ini)as below

[DEFAULTS]
plus = plus.jpg

[PATHS]
folderPath = None

[python]
import configparser
config = configpars..... More

Print this item

  how many do side by side windows for coding?
Posted by: Skaperen - Dec-21-2019, 03:25 AM - Forum: News and Discussions - Replies (4)

i'm curious how many coders do side-by-side windows for code comparing and other things like snipping code from examples (like how to build an email t..... More

Print this item

  How to use a variable as part of a filename
Posted by: handyguy - Dec-21-2019, 02:27 AM - Forum: General Coding Help - Replies (10)

I would like to simplify the following code, replacing the multiple if/elif's with a single line, but I have not been able to successfully figure it o..... More

Print this item

  Creating multiple instances in State Machine.
Posted by: michael1789 - Dec-21-2019, 12:50 AM - Forum: Game Development - No Replies

My Starcon2 clone is coming along, but I need to figure a way to create multiple instances of my "star_system" and "planetscreen" state classes.

I ..... More

Print this item

  string_2, cat,dog
Posted by: Dixon - Dec-20-2019, 10:25 PM - Forum: General Coding Help - Replies (3)

[python]
count_cat = 0
count_dog = 0
for i in range(len(str)-2):
if str[i:i+3] == 'dog':
count_dog += 1
if str[i:i+3] == 'cat'..... More

Print this item

  tqdm Progressbar for command line
Posted by: snippsat - Dec-20-2019, 09:57 PM - Forum: Tutorials - No Replies

(Dec-09-2019, 05:29 PM)Evil_Patrick Wrote: tqdm tutorials for CLI Progressbar
So can write a little about ..... More

Print this item

  Search Excel column values
Posted by: jonzee - Dec-20-2019, 06:17 PM - Forum: General Coding Help - Replies (1)

Hello,

I am using the xlrd library to open a workbook and read its data. I am a newbie and can't figure out how to do a search? For examples on the..... More

Print this item

  Shuntil.copyfile help
Posted by: mcesmcsc - Dec-20-2019, 05:14 PM - Forum: General Coding Help - Replies (6)

So when I run this, I get "TypeError: bad operand type for unary +: 'str'"

[python]
import os
import shutil

src = os.path.expanduser('~/Downlo..... More

Print this item

  Difference Between 2 files
Posted by: enigma619 - Dec-20-2019, 04:16 PM - Forum: General Coding Help - Replies (3)

Hi

I've a question to compare 2 files.

My first file 'file_new' contain:

Output:
1 2 3 5 6 7
My second file 'file_old' con..... More

Print this item

  How to find something in a list using its index
Posted by: rix - Dec-20-2019, 04:03 PM - Forum: General Coding Help - Replies (1)

Hello. How do you get an item in a list using its index? I am trying to remove a number of items from a list like this:[python]for i in range(len(cred..... More

Print this item

  Python function returns inconsistent results
Posted by: bluethundr - Dec-20-2019, 03:22 PM - Forum: General Coding Help - Replies (4)

I wrote a script that lists EC2 instances in Amazon Web Services. It writes the results to confluence. But it's behaving oddly.

I'm on windows 10. ..... More

Print this item

  Python for syntax conversion
Posted by: kingsman - Dec-20-2019, 02:52 PM - Forum: Homework - Replies (23)

My homework needs to use Python to write a programme for syntax files conversion.
For many construction software, the interoperability is weak and th..... More

Print this item

  using class
Posted by: Carloggy - Dec-20-2019, 10:52 AM - Forum: Homework - Replies (11)

I did my best to get my goal, I didn't get the moveUp by adding 10.

this is my code

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

Print this item

  Python to .so library in Ubuntu for web server
Posted by: danowitz - Dec-20-2019, 06:42 AM - Forum: General Coding Help - No Replies

Hi - In my project are trying to use python code in a web server. However for various reasons we are not allowed to actually put the python code on th..... More

Print this item

  typename in collections.namedtuple
Posted by: Skaperen - Dec-20-2019, 04:53 AM - Forum: News and Discussions - Replies (4)

does anyone know what collections.namedtuple's first argument, docs refer to as typename, is actually used for? i'm trying to figure out what ..... More

Print this item

  Create a csv file that pulls data from an .accdb file
Posted by: T0ky0banana - Dec-20-2019, 01:30 AM - Forum: General Coding Help - No Replies

Photo of Attachment.accdb file Attachment1.accdb



So I have several Attachment.accdb files in my directory. I ..... More

Print this item

  Dividing certain columns in multiple CSV files
Posted by: NatesM - Dec-20-2019, 12:19 AM - Forum: General Coding Help - Replies (4)

I'm trying to divide all data in certain columns from multiple CSV files using python. I want to divide all columns with certain values except the fir..... More

Print this item

  Installing Numpy multiple locations
Posted by: dwhe - Dec-19-2019, 11:45 PM - Forum: General Coding Help - Replies (4)

I am a new user to python so please be kind. I am using python 3 on ubuntu (Linux).

I installed numpy under …/APP1/.env/lib/python3.6/site-package..... More

Print this item

  [tkinter] Quiz generator
Posted by: joe_momma - Dec-19-2019, 10:35 PM - Forum: Code sharing - No Replies

To run this from command line: python3 quiz_generator.py trivia01.txt
if the text file isn't in the same folder the full path is used.
quiz_generato..... More

Print this item

  Search file with *filename* python 3.8
Posted by: lastyle - Dec-19-2019, 09:07 PM - Forum: Data Science - Replies (13)

Hi all.

I am looking for a solution that allows me to search inside a Folder for a Filename that can look like "*bestfile* or bestfile2* regardles..... More

Print this item

  I don't understand why this doesn't work
Posted by: sandeen - Dec-19-2019, 07:10 PM - Forum: General Coding Help - Replies (4)

can someone please explain to me why the third item in the list is not removed?

[python]
def alist(x):
for i in x:
if len(i) != 4:
..... More

Print this item

  Trying to send input from html form to database SQLite3
Posted by: RonnyGiezen - Dec-19-2019, 06:42 PM - Forum: General Coding Help - Replies (3)

Hello,

I am in my first year of software engineering and I'm fairly new to programming.
I'm trying to make a guest registration program for work (..... More

Print this item

  Regex to retrieve data from json in script tag.
Posted by: DreamingInsanity - Dec-19-2019, 06:36 PM - Forum: General Coding Help - Replies (4)

I use bs4 to get all the script tags from a web page like this:
[python]soup = BeautifulSoup(page.content, 'html.parser')
images = soup.find_all('sc..... More

Print this item

  Unable to login to remote SQL Server database
Posted by: sipriusPT - Dec-19-2019, 05:33 PM - Forum: General Coding Help - Replies (1)

Hello everyone,

I am trying to connect to a remote database in a SQL Server Engine for the first time, but I am struggling with it in Python 3.

..... More

Print this item

  Matrix Multiplication Issue
Posted by: VIJENDRA - Dec-19-2019, 05:03 PM - Forum: General Coding Help - Replies (1)

I have written the code given below in two different cases
Case I
[python]
a = [[1,2,3],[4,5,6],[7,8,9]]
b = a
i = 0
j = 0
while (i<3):
wh..... More

Print this item

  Easier way to manage dependencies?
Posted by: Tylersuard - Dec-19-2019, 03:17 PM - Forum: General Coding Help - Replies (2)

Ok it is a nightmare trying to install repos on my local machine. For instance, this repo: https://github.com/openai/multi-agent-em...environmen..... More

Print this item

  Installing two different flavors of Python
Posted by: sayyedkamran - Dec-19-2019, 02:39 PM - Forum: General Coding Help - Replies (2)

Can Python for Windows and Anaconda Python co exists on a Windows-10 Operating System?


Side Note: There must be a separate category for installat..... More

Print this item

  Basic example Coding
Posted by: gudlur46 - Dec-19-2019, 12:39 PM - Forum: General Coding Help - Replies (2)

Hello Everyone,
I am new to Python programming and moving from MATLAB to python. I am still getting acquainted to python syntax and was trying a few ..... More

Print this item

  Object of type set is not JSON serializable
Posted by: enigma619 - Dec-19-2019, 12:16 PM - Forum: General Coding Help - Replies (5)

Hi

I've a new problem with json / python.

My json is:
[output]
{
"domaine": {
"name": {
"service": ["service1", "se..... More

Print this item

  Cannot Change Python script to exe using Pyinstaller
Posted by: omar_mohsen - Dec-19-2019, 11:14 AM - Forum: General Coding Help - Replies (3)

I have done a code with python 3.5.4 version and I try to change the script to execution file using pyinstaller 3.5 and after changing the code to exe..... More

Print this item

  "usr" directory not present and needed for cmd commands?
Posted by: ajetrumpet - Dec-19-2019, 10:47 AM - Forum: General Coding Help - Replies (2)

hi guys,

I'm getting started with python and I need a push here. Everything I read online about executing cmds via the command prompt whether they..... More

Print this item

  How to select only one image from three?
Posted by: maks_mkv - Dec-19-2019, 09:45 AM - Forum: Game Development - Replies (1)

Hi all. I write a game. In game used three image. How to select only one image from three?

[python]
import pygame, sys
import os, random

os.c..... More

Print this item

  pandas str.extract multiple regex groups with OR
Posted by: pythonidae - Dec-19-2019, 09:38 AM - Forum: Data Science - Replies (2)

Hi. I have a column of text with inputs like, 3" deep, 4 inches deep, 5" depth. I wanted to extract just the value and put this in a ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  create ocr to detect lice... 58 minutes ago bimosora Pedroski55 General Codin...
  Parse Markdown / get the ... 11 hours ago SpongeB0B Pedroski55 General Codin...
  Error: cannot mix str wit... Yesterday, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 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
Most views
  The best Prog... 577452
  Tutorial Requ... 501139
  Web Scraping ... 441080
  Newbie with P... 385154
  New Users Int... 369775
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+ 12092
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
bimosora Today
kyleconor797 Yesterday
miriamwilliam Yesterday
Davidkiplimo Yesterday
Joliekeva Yesterday

User Panel Messages

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