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,236
» Latest member: Cristiano
» Forum threads: 38,776
» Forum posts: 175,791

Full Statistics

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

Latest Threads
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
3 hours ago
» Replies: 4
» Views: 97
Backward compatibility qu...
Forum: News and Discussions
Last Post: buran
Yesterday, 10:39 AM
» Replies: 3
» Views: 97
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-07-2025, 07:29 PM
» Replies: 0
» Views: 71
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 106
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,068
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,364
Recommend me a Python boo...
Forum: Data Science
Last Post: mamta25
Nov-06-2025, 08:33 AM
» Replies: 7
» Views: 5,556
Code runs perfectly and j...
Forum: General Coding Help
Last Post: noisefloor
Nov-05-2025, 05:56 PM
» Replies: 2
» Views: 186
Natural language processi...
Forum: Homework
Last Post: offsoar
Nov-05-2025, 02:03 PM
» Replies: 2
» Views: 3,196
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: ankitsharma32
Nov-05-2025, 08:31 AM
» Replies: 5
» Views: 7,442

 
  why does str need a .replace() method?
Posted by: Skaperen - Oct-23-2022, 10:11 PM - Forum: News and Discussions - Replies (4)

why does str need a .replace() method? is code any longer if, instead, there is a builtin function replace() that takes 3 arguments?
..... More

Print this item

  Load image and show in label
Posted by: ko_fal - Oct-23-2022, 10:21 AM - Forum: GUI - Replies (8)

Hello,
I'm new to Tkinter and Python and trying to display an image in a label by selecting from a folder.

[python]from asyncore import read
fr..... More

Print this item

  error message
Posted by: the_wolf_dz - Oct-23-2022, 10:09 AM - Forum: GUI - Replies (4)

hi everybody
I have created an GUI with the QT designer and when i integrate it in the python IDE ( Pycharm or Visuel Studio)
I encounter the follo..... More

Print this item

  How to call a class in other class?
Posted by: 3lnyn0 - Oct-23-2022, 02:52 AM - Forum: General Coding Help - Replies (3)

Hi! I have a problem in which a farmer want to calculate the area of a land when he buying a new land and to add at the existing one.
The shape of la..... More

Print this item

  Treeview actions
Posted by: swanysto - Oct-22-2022, 10:58 PM - Forum: GUI - Replies (4)

So I have been trying to learn a bit of tkinter by reading documentation and watching some videos. I have created a little price list program. It fill..... More

Print this item

  Python output didn't write properly
Posted by: mdmsd2 - Oct-22-2022, 10:06 AM - Forum: Web Scraping & Web Development - Replies (1)

[python]import requests
from subprocess import list2cmdline
import csv
import json

html_output = []
names = []

def pylist_to_list(list):
..... More

Print this item

  Banner text
Posted by: rob101 - Oct-22-2022, 09:08 AM - Forum: Code sharing - Replies (3)

Sharing a tool that a wrote that creates a uniform 'banner'.

I use use this for creating code block markers as well as banners for cli based apps, ..... More

Print this item

  Markdown in posts
Posted by: wavic - Oct-22-2022, 08:12 AM - Forum: Board - Replies (1)

I was away for a long time so I wonder if we can use markdown syntax in posts? I see that I can use those buttons in the editor but I feel more comfor..... More

Print this item

  My code displays too much output when importing class from a module
Posted by: lil_e - Oct-21-2022, 08:49 PM - Forum: General Coding Help - Replies (4)

Hi. This is my first post ever in a Python forum, and I'm a beginner so please bear with me Rolleyes

I have two sets of codes called restaura..... More

Print this item

  Auto-py-to-exe Stuck At 'Initializing'
Posted by: killingtime - Oct-21-2022, 06:36 PM - Forum: General Coding Help - Replies (5)

Hi,

I'm trying to convert a python script to a Windows exe on Windows 7.

I have Python 3.8 installed.
I have auto-py-to-exe installed using the comm..... More


Attached Files

.txt   install.txt (Size: 4.01 KB / Downloads: 523)
Print this item

  [split] why can't i create a list of numbers (ints) with random.randrange()
Posted by: astral_travel - Oct-21-2022, 04:08 PM - Forum: General Coding Help - Replies (7)

hey,

why can't i create a list of numbers (integers) with the random.randrange() method
as in:

[python]
print(random.randrange(0,100,2))
[/py..... More

Print this item

  Python310 and Python37 in my path - should I get rid of 37?
Posted by: omar - Oct-21-2022, 03:03 PM - Forum: General Coding Help - Replies (1)

I have C:\Users\myusername\AppData\Local\Programs\Python\Python310\
and C:\Users\myusername\AppData\Local\Programs\Python\Python37\

In my path env..... More

Print this item

Question Running an action only if time condition is met
Posted by: alexbca - Oct-21-2022, 05:32 AM - Forum: General Coding Help - Replies (5)

Hi everyone! Newbie here, I am using the below script to generate a push notification when I get a delivery at home / someone walks into my garden, us..... More

Print this item

  Brute Forcing RAR file using several PC Paying in Bitcoin
Posted by: Calli - Oct-21-2022, 03:52 AM - Forum: Jobs - Replies (6)

Lets say hypothetically I have a rar file, version 3 to be precise which starts with $RAR3$*0*
tip
[i][size=xx-small]We can extract..... More

Print this item

  pygame screem size
Posted by: Yegor123 - Oct-21-2022, 03:18 AM - Forum: General Coding Help - Replies (11)

Im making my first pygame and Im having toruble with screen size whenever i Hit run I cant see my player hes like hidden underneath the map Here is an..... More


Attached Files

Thumbnail(s)
   
Print this item

  Rename multiple photos with DateTimeOriginal timestamp
Posted by: Stjude1982 - Oct-20-2022, 09:08 PM - Forum: General Coding Help - Replies (2)

Hi,

I'm still very much in the learning phase of creating python programs.

At present, I'm trying to sort Google Photos onto PC but going forwar..... More


Attached Files

.py   RenameGooglePhotos.py (Size: 815 bytes / Downloads: 232)
Print this item

  Hiding username and password on sql
Posted by: tantony - Oct-20-2022, 07:04 PM - Forum: General Coding Help - Replies (10)

In my Python code, I have my username and password entered as plain text. But this is not the best practice since now anyone that see my code also kn..... More

Print this item

  question about micro frameworks
Posted by: mahdiar1382 - Oct-20-2022, 03:45 PM - Forum: General Coding Help - Replies (2)

hello
which micro framework recommended for web design field?
and must we know something special when we want to coding in flask micro framework ?

Print this item

  Def error
Posted by: Led_Zeppelin - Oct-20-2022, 11:44 AM - Forum: General Coding Help - Replies (2)

The following function (method):

[code]
def get_cv_heatmap(validation):
"""
Function to plot heat map of cross validation results
"..... More

Print this item

  method to remove zero digits from fraction in decimal
Posted by: Skaperen - Oct-20-2022, 05:17 AM - Forum: General Coding Help - Replies (17)

when a decimal number is a whole (integral, integer-like) number, it gets converted to string without the ".0". but if i take the result of calculati..... More

Print this item

  Removing leading\trailing spaces
Posted by: azizrasul - Oct-20-2022, 02:41 AM - Forum: General Coding Help - Replies (8)

I obtain daily csv files where the header values contain leading\trailing space values which I want to remove. In some cases, there can be 2 spaces an..... More

Print this item

  convert this List Comprehensions to loop
Posted by: jacklee26 - Oct-20-2022, 02:38 AM - Forum: General Coding Help - Replies (8)

Does anyone know how to convert this List Comprehensions to normal for loop code:
[python]
results = ['A' , 'B', 'C' , 'D']
]for i in [results[c:c+2..... More

Print this item

  Need help editing a PDF
Posted by: omar - Oct-20-2022, 01:49 AM - Forum: General Coding Help - Replies (4)

I want to find out what I can do in Python for editing PDFs.
The PDF's will have many pages, each page with have 4 labels.
I need to add extra info..... More

Print this item

  how to replace OR operator with any
Posted by: mg24 - Oct-20-2022, 01:42 AM - Forum: General Coding Help - Replies (7)

Hi Team,

In below code , I am checking Country name if(Ind,US,Aus) then proceed further else exit.
how to use any operator in below situation.

..... More

Print this item

  Where can I find Python training with reading, lecture, labs and assignments?
Posted by: davidorlow - Oct-19-2022, 06:34 PM - Forum: General Coding Help - Replies (2)

Ok, I'm having a really hard time finding this. I paid a few hundred dollars to take an EdX course. It has mostly the way you'd learn in college, but..... More

Print this item

  ModuleNotFoundError: No module named 'omsdk.sdkproto'
Posted by: donvito7 - Oct-19-2022, 01:19 PM - Forum: General Coding Help - Replies (4)

Can anyone help me to fix this?

I am getting the error like in the subject line.

Traceback (most recent call last):
File "/usr/local/nagios/d..... More

Print this item

  Joining two jupyter notebooks and getting an error!
Posted by: Led_Zeppelin - Oct-19-2022, 12:32 PM - Forum: General Coding Help - Replies (1)

I am using the nbmerge command to join two jupyter notebooks into one larger notebook.

It appears to work. However, when running the new notebook, ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Creating a change table - £0.01-£0.50?
Posted by: MrKnd94 - Oct-19-2022, 12:01 PM - Forum: Homework - Replies (9)

Hello,

I'm trying to complete my workbook for university, but I'm stuck on this question: Write a program that determines how many of each coin ( f..... More


Attached Files

Thumbnail(s)
   
Print this item

  Numpy Structure and Efficiency
Posted by: garynewport - Oct-19-2022, 11:34 AM - Forum: General Coding Help - Replies (2)

I have the following code:

[python]
import matplotlib.pyplot as plt
import matplotlib.cbook as cbook

import numpy as np
import math

SIGMA ..... More

Print this item

  what version has the fix for the CVEs?
Posted by: juniarti - Oct-18-2022, 09:01 PM - Forum: News and Discussions - Replies (11)

Hi,
I have list of CVE for python and how do I find out what python version did has the fix for these list of CVE?
CVE-2018-20060, CVE-2019-16935, C..... More

Print this item

  Taking any 2d image and passing it to create a level
Posted by: iki_a_toure - Oct-18-2022, 09:00 PM - Forum: General Coding Help - Replies (4)

Hello,

I need help please. I am trying to figure out how can I take any 2d image I got and pass it in a python program with outlines that would act..... More

Print this item

  help RuntimeError: no running event loop
Posted by: marpaslight - Oct-18-2022, 07:14 PM - Forum: General Coding Help - Replies (5)

[python]from dataclasses import dataclass
from tkinter.messagebox import YES
from telethon import TelegramClient
from telethon import utils
from t..... More

Print this item

  mysql id auto increment not working
Posted by: tantony - Oct-18-2022, 02:25 PM - Forum: General Coding Help - Replies (10)

I deleted ID 2 from mySQL db, but then I have the following to AUTO INCREMENT

[python]import mysql.connector

mydb = mysql.connector.connect(
..... More

Print this item

  Post Request containing username/password using python for jwt
Posted by: anna - Oct-18-2022, 02:24 PM - Forum: Networking - Replies (1)

Hi All,

I am trying to get token through requests with user and password, there one small javascript provided by Vendor (this was demo in postman)...... More

Print this item

  NameError
Posted by: nafshar - Oct-18-2022, 01:24 PM - Forum: General Coding Help - Replies (3)

I am getting a NameError that I do not understand.
It appears the function "combo" is defined in the proper place, so "combo not found" is puzzling ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 3 hours ago Alfredd Pedroski55 General Codin...
  Backward compatibility qu... Yesterday, 10:39 yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... 11-07, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
  Code runs perfectly and j... 11-05, 17:56 compuman145 noisefloor General Codin...
  Natural language processi... 11-05, 14:03 maaaa2401 offsoar Homework
  Can I develop a live vide... 11-05, 08:31 mtrkhan ankitsharma32 Web Scraping ...
  [SOLVED] Linefeed when wr... 11-04, 11:51 Winfried buran General Codin...
Most views
  The best Prog... 578684
  Tutorial Requ... 509140
  Web Scraping ... 441841
  Newbie with P... 385794
  New Users Int... 375068
Most reputation
buran 581
snippsat 510
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+ 12102
buran 8194
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07
EchoFlowar3Dip 11-07

User Panel Messages

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