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,982
» Latest member: kyleconor797
» Forum threads: 38,733
» Forum posts: 175,570

Full Statistics

Online Users
There are currently 57 online users.
» 1 Member(s) | 48 Guest(s)
Bing, Google, Apple, Facebook Dev, buran

Latest Threads
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: Pedroski55
8 hours ago
» Replies: 5
» Views: 152
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Yesterday, 03:05 AM
» Replies: 4
» Views: 2,032
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 445
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,079
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,141
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 814
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,098
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,544
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,133
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,591

 
  Pillow
Posted by: juuls04 - Dec-29-2019, 09:25 PM - Forum: GUI - Replies (4)

[python]
from tkinter import *
from PIL import Image,ImageTk

root = Tk()

img = ImageTk.PhotoImage(Image.open('red-circle.png'))
label = Label..... More

Print this item

  Best Library to use?
Posted by: juuls04 - Dec-29-2019, 09:17 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi
I want to create a automated software wich purchases sneakers from websites automaticly. I was wondering wich lybrary is best to use in this case...... More

Print this item

  Q on file ownership
Posted by: ebolisa - Dec-29-2019, 07:14 PM - Forum: General Coding Help - Replies (2)

Hi,

Why the generated log file has root ownership and not user's?

TIA

[python]fileLog = '/home/pi/mylogs.log'

# Log messages should be time stampe..... More

Print this item

  What is wrong with my chemistry code?
Posted by: mimimycin - Dec-29-2019, 05:40 PM - Forum: General Coding Help - Replies (9)

Hello guys, can someone explain me why it's wrong and it doesn't work. I'm beginner.

[python]
def product_produced(actual_substance):
def yi..... More

Print this item

  Input box
Posted by: Jpen10 - Dec-29-2019, 05:13 PM - Forum: GUI - Replies (7)

I'm not very good at programming with tkinter and kivy. To set on the old Basic, Q basic, GWBasic and VBasic for Excel and MSAccess. I've tried numero..... More

Print this item

  Django admin login problem
Posted by: erfanakbari1 - Dec-29-2019, 12:29 PM - Forum: Web Scraping & Web Development - No Replies

Hey guys .
I just started web development using Django framework & after fixing urls and creating models and views I just created a super user in ter..... More

Print this item

  computing entropy using pickle files
Posted by: baran01 - Dec-29-2019, 10:42 AM - Forum: General Coding Help - Replies (2)

Hi everyone
Happy holidays

I'm working on the ISCX VPN2016 dataset, it consists of some pcap file..... More

Print this item

  ValueError: The condensed distance matrix must contain only finite values.
Posted by: kisumsam - Dec-29-2019, 09:51 AM - Forum: Data Science - Replies (1)

Hi, I am learning Python and I have the following code that gives me the following error:

ValueError: The condensed distance matrix must contain on..... More

Print this item

  How to insert data if not exists in mysql?
Posted by: farah97 - Dec-29-2019, 08:32 AM - Forum: General Coding Help - No Replies

Hi...I want to insert the new data if it is not exist in MySQL. This is the code:

[python]mySql_insert_query = """INSERT INTO sent (q,polarity,sent..... More

Print this item

  Find all “*.wav” files that created yesterday on linux host with python.
Posted by: pydeev - Dec-29-2019, 07:15 AM - Forum: General Coding Help - Replies (6)

There is so many .wav files and create alot of these files everyday on Linux Host. I want to find all wav files that created yesterday ( a day ago whe..... More

Print this item

  Need to Start Web Development
Posted by: mitpancha - Dec-29-2019, 05:37 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello All,

I am new to Python and need to use Django for web development.
Please suggest me how to start django and use admin lte 2 template and p..... More

Print this item

  dynamically resize custom widget fill remaining space
Posted by: ironcthulhu - Dec-29-2019, 01:35 AM - Forum: GUI - Replies (1)

I have a two-pane horizontal QSplitter that takes up the entire window. The right pane is unimportant for now. I just gave it a dummy QFrame. But the ..... More

Print this item

  Download an interesting magazine.....
Posted by: louiz7 - Dec-29-2019, 01:14 AM - Forum: Bar - No Replies

I came across the story of an amusing magazine.

https://www.syntaxbomb.com/index.php/top...l#msg30504


The Christmas magazine..... More

Print this item

  iterating a span of a list
Posted by: Skaperen - Dec-29-2019, 12:04 AM - Forum: General Coding Help - Replies (5)

i'm looking for something that can do like this span() function can:
[python]
a = ['foo','bar','boo','far','baz']
for b in span(a,..... More

Print this item

  Calculator: several options, changing the number
Posted by: gus17 - Dec-28-2019, 08:05 PM - Forum: Homework - Replies (4)

Hi, I'm a beginner to Python and have been struggling with this assignment since yesterday: the user gives 2 numbers and then selects an action (1-6)...... More

Print this item

  It does truncatte where i would ...
Posted by: AyUniz - Dec-28-2019, 07:38 PM - Forum: General Coding Help - Replies (3)

Hello !

I tried to do something that truncatte a list of strings but i doesn't truncate where i would to.

[b]I show you what i would ..... More

Print this item

  Extracting url from a csv
Posted by: sdCarr - Dec-28-2019, 11:54 AM - Forum: Web Scraping & Web Development - No Replies

Hello I would like to extract url from a csv, the idea is to iterate the column containing those links and download the content in a folder as .txt fi..... More

Print this item

  Unable to save filepath to config.ini file using filedialog.askopenfilename
Posted by: JackMack118 - Dec-28-2019, 07:17 AM - Forum: GUI - Replies (10)

Hello everyone, hope you are all well these holidays.

I'm having problems updating and writing to a config.ini file using filedialog.askopenfilenam..... More

Print this item

  get docstring to work with another block of text at the top
Posted by: Skaperen - Dec-28-2019, 04:57 AM - Forum: General Coding Help - Replies (4)

i want to assign the text of the license for my script to a variable. and i want this to be the first block of text one sees when slowly reading the ..... More

Print this item

  How can I make all of the background move as opposed to just one platform?
Posted by: HelpMEE - Dec-28-2019, 02:54 AM - Forum: Game Development - Replies (6)

When I collide into a platform, the player is supposed to stop moving, and it did, but it also glitched slightly into the rectangle, so I found a work..... More

Print this item

  Determining the Percentage of Voter Population
Posted by: Than999 - Dec-28-2019, 12:32 AM - Forum: Homework - Replies (5)

Hi, I am struggling with this assignment. I am asked to determine which county has the highest voter percentage (in decimal form only, i.e. population..... More

Print this item

  Iterate through csv file starting from row 2
Posted by: blaiddyn - Dec-27-2019, 11:34 PM - Forum: General Coding Help - Replies (2)

I'm fairly new to programming but I'm trying to write a program that iterates through the length of a csv file row by row. It will create 3 new csv fi..... More

Print this item

  Webhooks with Python
Posted by: kamaleon - Dec-27-2019, 07:23 PM - Forum: Web Scraping & Web Development - Replies (7)

Hello,

Do we need to use Flask in order to use webhooks with Python?

Or can we avoid using Flask?

Thanks

Print this item

  Multiprocessing OSError 'too many open files'
Posted by: DreamingInsanity - Dec-27-2019, 04:13 PM - Forum: General Coding Help - Replies (3)

I am using multiprocessing to do some link processing.
The code I am using to create the processes is the same as shown in one of my earlier posts:
..... More

Print this item

  odd or even minute
Posted by: Dixon - Dec-27-2019, 04:12 PM - Forum: General Coding Help - Replies (12)

[python]from datetime import datetime
import time
import random
odds = 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,
33,35,37,39,41,43,45,47,49,51,5..... More

Print this item

  Predicting Likes on Instagram Posts
Posted by: donnertrud - Dec-27-2019, 01:36 PM - Forum: General Coding Help - Replies (1)

Hi guys,

I am new to Python 3, but already started to learn and code some very basic programs with python (mostly beginner friendly tasks from text..... More

Print this item

  string literals in a list. Not what I expected.
Posted by: tycarac - Dec-27-2019, 10:52 AM - Forum: General Coding Help - Replies (3)

Hi

I saw unexpected Python behavior (to me) with string literals in a list. If I miss a comma in the list sequence, then the two string literals a..... More

Print this item

  Selenium locating an element.
Posted by: JokerTux - Dec-27-2019, 10:22 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi guys !
So I have an question about Selenium, I want to locate the userName tag . By inspecting the site I found this whole class :
[inline]" <sp..... More

Print this item

  Predict Longitude and Latitude Using Python
Posted by: vibeandvisualize - Dec-27-2019, 09:55 AM - Forum: Data Science - Replies (1)

Hi everyone,

Does anyone know a way to predict/forecast
location in Python?

I am working on a project to predict where the next new employee ..... More

Print this item

  Orange PI Win steering LEDs connect to GPIO
Posted by: djmcg - Dec-27-2019, 08:26 AM - Forum: General Coding Help - No Replies

Hello
I have Orange PI Win and I would like to the 5 LEDs flash one after the other.
I was able to do it with the usual script below with colleagues..... More

Print this item

  Pygame has missing files.
Posted by: DamonTattersfield - Dec-27-2019, 06:32 AM - Forum: Game Development - Replies (1)

I'm watching this youtubers series on pygame, and I can make some stuff. I can make a window, and draw a box with a specific color, but for some reaso..... More

Print this item

  Remove all \n from end of list items
Posted by: JackMack118 - Dec-27-2019, 06:14 AM - Forum: General Coding Help - Replies (4)

Hello all,

I've been Googling and reading here, reading StackOverflow but can't solve what I feel is a very simple problem.

I cannot strip off t..... More

Print this item

  UnboundLocalError: local variable referenced before assignment
Posted by: svr - Dec-27-2019, 05:23 AM - Forum: General Coding Help - Replies (1)

Hi

Need some help here
Original code
[python]
def test1():
test_list = []
test_var = 0
test_string1 = ""

def test2():
..... More

Print this item

  Career step with Python
Posted by: izildop - Dec-26-2019, 09:41 PM - Forum: News and Discussions - No Replies

Hi,

I see that Python grows rapidly and I was interested in getting a job as a Python developer. Which path can I choose? I want to be busy with w..... More

Print this item

  How get table element
Posted by: zinho - Dec-26-2019, 08:38 PM - Forum: Web Scraping & Web Development - Replies (5)

Hi

How can I get table with result?

[python]import requests
from bs4 import BeautifulSoup

page = requests.get('https://chess24.com/en/watch/..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 8 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
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
Most views
  The best Prog... 577451
  Tutorial Requ... 501111
  Web Scraping ... 441079
  Newbie with P... 385153
  New Users Int... 369766
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
kyleconor797 Yesterday
miriamwilliam Yesterday
Davidkiplimo Yesterday
Joliekeva Yesterday
silversimon2 09-30

User Panel Messages

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