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,981
» Latest member: Davidkiplimo
» Forum threads: 38,733
» Forum posts: 175,565

Full Statistics

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

Latest Threads
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: SpongeB0B
1 hour ago
» Replies: 0
» Views: 33
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
7 hours ago
» Replies: 4
» Views: 1,995
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 415
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,049
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,106
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 773
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,077
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,522
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,099
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,560

 
  Questions about elements in dict
Posted by: new_to_python - Feb-08-2020, 01:41 AM - Forum: General Coding Help - Replies (5)

Hi, I am new to Python. I came across the following example:

"Like dicts, set elements generally must be immutable. To have list-like elements, you..... More

Print this item

  Python Nested if-else ladders
Posted by: kdelsorbo - Feb-08-2020, 12:05 AM - Forum: Homework - Replies (4)

I am trying to utilize a while loop with an if-else ladder nested inside in order to take user input for menu items and add menu item prices together...... More

Print this item

  Understanding Python's Import Engine
Posted by: MysticaL - Feb-07-2020, 10:23 PM - Forum: General Coding Help - Replies (1)

Hi,

I have a question pertaining to importing post python 3.4 (I am using python 3.8). It is my understanding that the import engine will internall..... More

Print this item

  Python using BS scraper
Posted by: paulfearn100 - Feb-07-2020, 10:04 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello please can some point me in the right direction
- i have been dabbling and leaning Python with Beautiful soup and web scraping
i would like to..... More

Print this item

  Damegender
Posted by: davidam - Feb-07-2020, 09:53 PM - Forum: News and Discussions - No Replies

If you want try a new gender detection tool...
$ pip3 install damegender[all]
$ git clone https://github.com/davidam/damegender
$ firefox http://ww..... More

Print this item

  netmiko connecting to arista devices.
Posted by: dan1962 - Feb-07-2020, 09:23 PM - Forum: Networking - No Replies

Creating a Python script that will log into a Arista Switch, from there it will save config, then tftp to a tftp server and copy the running-config.
..... More

Print this item

  PyQt5 Installation
Posted by: Clamantium - Feb-07-2020, 08:08 PM - Forum: GUI - Replies (2)

I am trying to teach myself to code in Python using various resources and want to create my first, very simple, desktop application. I have no coding ..... More

Print this item

  Acces to page denied
Posted by: julio2000 - Feb-07-2020, 07:41 PM - Forum: Web Scraping & Web Development - Replies (1)

driver = webdriver.Chrome()
driver.get('https://www.snipes.nl/login')
So I made this simple piece of code where it go's to a ..... More

Print this item

  Calculation using output of if statement
Posted by: StephenBeckman - Feb-07-2020, 07:30 PM - Forum: General Coding Help - Replies (3)

I want to calculate the amount of state tax withheld from a paycheck using a calculator coded with python below is the code i have wrote thus far:
i..... More

Print this item

  Proper Layout of Code Question
Posted by: TheJax - Feb-07-2020, 06:47 PM - Forum: General Coding Help - Replies (2)

Is there a 'standard' or 'preferred' way of coding in Python when coding functions?

Should the functions be listed in order they are called from to..... More

Print this item

  "cant find python.exe"
Posted by: daniel1319 - Feb-07-2020, 06:46 PM - Forum: News and Discussions - Replies (2)

Hi, hope you can help me, i am having a bad time.

I am trying to run a 3d printing software but it shows this message
"Cant find python.exe, Pleas..... More

Print this item

  Secant and Bisection method
Posted by: hml75 - Feb-07-2020, 06:44 PM - Forum: Homework - Replies (3)

#I am taking an online python class for fun. I have read ahead and this is one of the questions that I
#received. I have no idea where to begin. Any..... More

Print this item

  Trying to iterate through a list...
Posted by: t4keheart - Feb-07-2020, 06:34 PM - Forum: General Coding Help - Replies (2)

Hello again,

Wondering why I can't get this to work...

I have a list of numerical values stored in a .txt file lib.txt, like this:

[p..... More

Print this item

  Searching for /simple/py
Posted by: KipCarter - Feb-07-2020, 05:44 PM - Forum: General Coding Help - No Replies

Sometimes simplicity is ambiguous...

I'm installing a dependency module, which has a subsequent dependency noted as '/simple/py'.

[output]WARNIN..... More

Print this item

  Printing output without print usage
Posted by: susmith552 - Feb-07-2020, 05:13 PM - Forum: General Coding Help - Replies (1)

Hello Everyone,

I am new to programming and new to python. I tried to run below program and it gave me the first value i entered. After first value..... More

Print this item

  TicTacToe Logic
Posted by: AhmadMWaddah - Feb-07-2020, 04:47 PM - Forum: Code Review - Replies (2)

Hello Folks,
I Made Simple TicTacToe, But It seems there is something missd, can any one help me with this, i want to know what i miss as computatio..... More

Print this item

  Help with taking pictures on raspberry pi
Posted by: octavia - Feb-07-2020, 04:42 PM - Forum: General Coding Help - Replies (1)

I am trying to automatically take a picture on a raspberry pi camera every 60 seconds. I am struggling to repeat the loop. Any help would be great tha..... More

Print this item

  Fake UserAgent Issue NEED HELP !
Posted by: adultsitem - Feb-07-2020, 04:21 PM - Forum: General Coding Help - Replies (1)

This opens new fake useragent everytime but rondom useragent chooses alot of very old and not used user agents. How can I import from my useragent lis..... More

Print this item

  Web Scraping, Merging two lists and getting data from various dates?
Posted by: AgileAVS - Feb-07-2020, 04:05 PM - Forum: Web Scraping & Web Development - No Replies

[python]import urllib.request, urllib.parse, urllib.error
import re
import requests
from bs4 import BeautifulSoup

fhand = urllib.request.urlopen..... More

Print this item

  creating consecutive rows
Posted by: PyPy - Feb-07-2020, 03:40 PM - Forum: General Coding Help - Replies (1)

Hi,

I have a requirement of creating consecutive rows. My data has ID#, start dt and end date. For example:

[quote]ID start date end date
..... More

Print this item

  Need help on creating a relay between Python backend and C# UI
Posted by: SneakyKiwi - Feb-07-2020, 03:28 PM - Forum: Networking - Replies (1)

I am creating a social platform. I am using Python as backend and C#, .NET as UI since it has very good libraries for creating one and can be made cro..... More

Print this item

  Problem printing out first name, last name, age
Posted by: Asm0deus314 - Feb-07-2020, 03:26 PM - Forum: Homework - Replies (6)

I am creating an application that requests first name, last name, and age (based off of year born). I believe I have the variables all correct as they..... More

Print this item

  Removing Certain Numbers From File
Posted by: chascp - Feb-07-2020, 03:23 PM - Forum: General Coding Help - Replies (2)

Hey Everyone,

I have a data file full of various numbers e.g.

1 2 3 1 180
2 3 4 1 180
3 4 5 1 180
4 5 6 1 180
5 6 7 1 180
6 7 8 1 180..... More

Print this item

  complex sort in dataframe
Posted by: gjs_2020 - Feb-07-2020, 02:10 PM - Forum: General Coding Help - No Replies

Hello guys!

I have a dataframe.

[python]import pandas as pd
data = {'num':[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
'name':['281.3891.3..... More

Print this item

  Understanding the "self" concept
Posted by: peace - Feb-07-2020, 01:26 PM - Forum: Homework - Replies (7)

Hi community,

I understand that we need to use the "self" keyword everywhere in Python methods.

Still I am not conceptually clear what it means...... More

Print this item

  Is this use of exec pythonic?
Posted by: psolar - Feb-07-2020, 12:11 PM - Forum: General Coding Help - Replies (1)

Hello all,

Consider this code:

[python]self._t10_test = None
self._t20_test = None
self._t30_test = None

id_lst = ['10', '20', '30']
msg_lst = ['M..... More

Print this item

  a little help with a While Loop
Posted by: Hob_78 - Feb-07-2020, 12:00 PM - Forum: General Coding Help - Replies (2)

A newbie here Big Grin

This code prints "too many tires" at every loop.
The goal is to print it at the end of the loop only. (after 3 wrong t..... More

Print this item

  Adding elements to a list by number
Posted by: Olavv - Feb-07-2020, 10:20 AM - Forum: General Coding Help - Replies (4)

How do I add elements to a list by number?
If I wanted to add elements that are grouped in three's from a list to three other lists, how would I do ..... More

Print this item

  make a list of the file in the folder and change the name of file regarding to time
Posted by: go127a - Feb-07-2020, 05:34 AM - Forum: General Coding Help - Replies (5)

I have a list of file. I am going to change the file name regarding to the modified date in below format. original file name:
2019-11-26_#001.tws
2..... More

Print this item

  n_estimators error
Posted by: Scott - Feb-07-2020, 03:42 AM - Forum: Data Science - Replies (1)

I ran a Genetic Algorithm and got recommended the following pipeline:

Best pipeline: ExtraTreesRegressor(LinearSVR(input_matrix, C=0.001, dual=True..... More

Print this item

  Matplotlib graphing help (dual y axis, groupby, filter)
Posted by: keml - Feb-07-2020, 02:35 AM - Forum: General Coding Help - No Replies

Hi everyone,

I'm new to python and I'm trying to plot some graphs.

I'm trying to plot multiple series of numerical data that are defined by an I..... More

Print this item

  How do i add limits to this code ?
Posted by: learn1 - Feb-07-2020, 01:00 AM - Forum: General Coding Help - Replies (3)

[python]while True:
answer1 = input("Password: ")
if answer1 != "123":
print("Wrong Password")
continue
else:
print("Welcome!"..... More

Print this item

  [Basic] The ‘Pythonic’ Python Tutorial!
Posted by: TheMachinePreacher - Feb-06-2020, 11:25 PM - Forum: Tutorial Requests and Submissions - Replies (5)

I know there are plenty of freely available Python tutorials out there, but I thought I'd create one that's more 'Pythonic', i.e. succinct and easy to..... More

Print this item

  I can't remove python. I'm not kidding, it doesn't get uninstalled.
Posted by: david503 - Feb-06-2020, 10:29 PM - Forum: General Coding Help - Replies (5)

I've spent like a week's worth of man-hours trying to get uwgsi to work (see https://python-forum.io/Thread-ImportErr...?pid=10451..... More

Print this item

  Fixing "PermissionError: [Errno 13] Permission denied"
Posted by: puredata - Feb-06-2020, 09:58 PM - Forum: General Coding Help - Replies (17)

Hello, I'm trying to use Python to automate unzipping of multiple files in a folder. I already have a script that works and unzips my files. But it wo..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 1 hour ago SpongeB0B SpongeB0B General Codin...
  Error: cannot mix str wit... 7 hours ago ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 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
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
Most views
  The best Prog... 577439
  Tutorial Requ... 500941
  Web Scraping ... 441075
  Newbie with P... 385141
  New Users Int... 369692
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Davidkiplimo Today
Joliekeva Today
silversimon2 Yesterday
alissapena8 Yesterday
hoki1881 Yesterday

User Panel Messages

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