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,579
» Latest member: netspeck
» Forum threads: 38,670
» Forum posts: 175,236

Full Statistics

Online Users
There are currently 222 online users.
» 1 Member(s) | 215 Guest(s)
Applebot, Bing, Yandex, Baidu, Google, vmars316

Latest Threads
How to add Permanent Sign...
Forum: General Coding Help
Last Post: vmars316
2 minutes ago
» Replies: 0
» Views: 2
veri kazıma
Forum: Web Scraping & Web Development
Last Post: fehmikonkur
1 hour ago
» Replies: 9
» Views: 213
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: Jmathew1
Today, 06:20 AM
» Replies: 4
» Views: 6,447
Post Body (for "Forum Usa...
Forum: Board
Last Post: hihi
Yesterday, 06:17 AM
» Replies: 0
» Views: 61
None collapsing Tuple at ...
Forum: Code Review
Last Post: hihi
Yesterday, 05:21 AM
» Replies: 0
» Views: 91
Label & OptionMenu widget...
Forum: GUI
Last Post: slate
Yesterday, 02:21 AM
» Replies: 2
» Views: 153
Code stoped working
Forum: News and Discussions
Last Post: DeaD_EyE
Jul-19-2025, 10:55 AM
» Replies: 2
» Views: 175
ASCII-Codec in Python3 [S...
Forum: General Coding Help
Last Post: Gribouillis
Jul-19-2025, 08:53 AM
» Replies: 6
» Views: 10,545
How scan all ips from mai...
Forum: Networking
Last Post: MaahirThomas
Jul-18-2025, 07:09 PM
» Replies: 2
» Views: 423
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: deanhystad
Jul-18-2025, 03:10 PM
» Replies: 7
» Views: 476

 
  Confusion over an Except branch
Posted by: Mark17 - Oct-13-2023, 06:17 PM - Forum: General Coding Help - Replies (1)

Hi all,

Here's some code:

[code]
#Create Custom Exceptions
class InvalidTitle(Exception):
pass

try:
title = input("Type the title..... More

Print this item

  'NoneType' object has no attribute 'get'
Posted by: zunebuggy - Oct-13-2023, 04:26 PM - Forum: GUI - Replies (8)

I used to develop in VB 6 and am new to Python. I am finding it to be very powerful but a little difficult to debug at times. I am going through som..... More

Print this item

  Need Guidance
Posted by: mridrees - Oct-13-2023, 02:53 PM - Forum: News and Discussions - Replies (4)

Hy Python Community,
Hope Everyone is good
I am bachelor's Student and learning Python this year
I request everyone that please provide me best Pyt..... More

Print this item

  difference between next() and .__next__
Posted by: akbarza - Oct-13-2023, 06:57 AM - Forum: General Coding Help - Replies (4)

Hi
in the below code:
[python]def g():
for i in range(3):
yield i*i
my_g=g()
my_g.__next__()
next(my_g)
#what is difference betwee..... More

Print this item

  Making my way back into programming and need a little help.
Posted by: joegibbstruck - Oct-12-2023, 07:47 PM - Forum: General Coding Help - Replies (2)

Hey guys, my name is James I'm from Houston, TX, it's been roughly 22yrs since I last tried any programming in college. I recently decided to try and ..... More

Print this item

  Active Directory integration
Posted by: dady - Oct-12-2023, 07:10 PM - Forum: General Coding Help - Replies (2)

Hi all,

I would like to know what's the best way for working with Python and Active Directory?

Thanks in advance.

Print this item

  Can Python be my replacement for VBScript?
Posted by: Moondoggy - Oct-12-2023, 05:53 PM - Forum: News and Discussions - Replies (3)

I read yesterday that Microsoft is going to discontinue VBScript in future releases of Windows which will eventually create a few problems for me so I..... More

Print this item

  datetime module question
Posted by: jacksfrustration - Oct-12-2023, 11:01 AM - Forum: General Coding Help - Replies (9)

Basically i want to make a list of days and dates for the current month. I want to be able to make the list as options in an optionmenu widget. The fo..... More

Print this item

  Does @ at sign used for tother than decorators?
Posted by: ggpython000 - Oct-12-2023, 08:57 AM - Forum: General Coding Help - Replies (1)

I have simple example for decorator usage which is straightforward to understand:
[python]
def print_fcn_name(func):
def wrapper():
..... More

Print this item

  Facing issue in python regex newline match
Posted by: Shr - Oct-12-2023, 08:54 AM - Forum: General Coding Help - Replies (6)

Hi Everyone,

.Myc PGGGGG_UIII_Q9999_AB A0 B11 B22 D1 D2 D3
+ 4I 3B

I am trying to match the above two line using regex.

\.(myc|Myc)\s+([a-zA..... More

Print this item

  replace text in a txt
Posted by: cartonics - Oct-12-2023, 07:48 AM - Forum: General Coding Help - Replies (19)

[python]# Read in the file
with open('lista.txt', 'r') as file:
filedata = file.read()

# Replace the target string
filedata = filedata.replace..... More

Print this item

  Noon Beginner
Posted by: stix77 - Oct-12-2023, 05:36 AM - Forum: News and Discussions - Replies (2)

I just would like to know where I could learn python for a beginner? What would be the best path for this?

Print this item

  my python project for school
Posted by: vavervirus - Oct-12-2023, 03:15 AM - Forum: Homework - Replies (2)

Hello I am in grade 11 and have to finish a comp sci project, but my teacher doesn't really teach I was wondering if anyone can make me a simple code ..... More


Attached Files

.pdf   3.02 lab 2023.pdf (Size: 133.77 KB / Downloads: 250)
Print this item

  JSON Dump and JSON Load
Posted by: foxholenoob - Oct-12-2023, 12:27 AM - Forum: General Coding Help - Replies (8)

I apologize, the insert code snippet button isn't working.

I am having an issue dumping to json and then reading back in. When I read it back in corr..... More

Print this item

  __name__ and __main__ in functions
Posted by: Mark17 - Oct-11-2023, 06:09 PM - Forum: General Coding Help - Replies (3)

Here's a short program:
[code]
lwords = ["a", "an", "and", "as", "at", "but", "for", "how", "if", "in", "of", "off", "nor", "or", "so", "the", "to",..... More

Print this item

  macOS Sonoma (14) seems to need a newer version of Tcl/Tk
Posted by: gernophil - Oct-11-2023, 02:44 PM - Forum: GUI - Replies (1)

Window behavior is buggy with Tcl/Tk version 8.6.12:
https://github.com/Anjok07/ultimatevocal...issues/840
https://github.com/TomSchimansky/..... More

Print this item

  Object Detection with ESP32 CAM.
Posted by: MateoG - Oct-11-2023, 01:44 PM - Forum: Homework - No Replies

Hello, I'm trying to do the following: https://youtu.be/A1SPJSVra9I?si=hI7GlHYcjmXrZWXj but when I click "Run," the "live streaming" and "detection" w..... More

Print this item

  `VSCODE_ENV_REPLACE` in vscode
Posted by: cdaman - Oct-11-2023, 10:24 AM - Forum: General Coding Help - No Replies

Hello,
I am using poetry to managing python project. In vscode terminal when i open that project I got an env variable VSCODE_ENV_REPLACE which con..... More

Print this item

  Input network device connection info from data file
Posted by: edroche3rd - Oct-10-2023, 06:04 PM - Forum: General Coding Help - Replies (6)

Good afternoon all!

Little background...I am new to Python but am a network engineer trying to leverage Python for repetitive tasks. My current tas..... More

Print this item

  add entries and labels to the window tkinter
Posted by: jacksfrustration - Oct-10-2023, 02:42 PM - Forum: General Coding Help - Replies (3)

Basically i want to build an app where the user can add entries and labels to the window
i have the following code

[python]
global cur_row,count..... More

Print this item

  Modify an Energy Model to account for year dependent interest rate rather than only t
Posted by: giovanniandrean - Oct-10-2023, 07:00 AM - Forum: General Coding Help - No Replies

The energy model is structured as follows and uses excel sheets to give input data:

1.Utility.py contains all the functions needed to calculate the..... More

Print this item

  Python and pandas: Aggregate lines form Excel sheet
Posted by: Glyxbringer - Oct-09-2023, 06:27 PM - Forum: General Coding Help - Replies (12)

Hello dear community,

I am faced with a challenge and need your expertise. I am working with an Excel spreadsheet that contains various columns.
I..... More

Print this item

  Connecting to LDAP through Python
Posted by: ranjansanyal2007 - Oct-09-2023, 05:21 PM - Forum: General Coding Help - No Replies

Hi,

I am trying to connect to LDAP with SSL authentication. I installed ldap3, unbale to install ldap. I am not sure how to select the certificates..... More

Print this item

  How to automate loop test check on Network device
Posted by: jpc230 - Oct-09-2023, 04:33 PM - Forum: General Coding Help - Replies (1)

Hi All,

I'm an experienced Network Engineer but a beginner in python, I have the basics in python, I know how to write basic script with list, dictio..... More

Print this item

  What data types can I use for default values?
Posted by: Mark17 - Oct-09-2023, 01:50 PM - Forum: General Coding Help - Replies (1)

I'm working my way through _Teach Yourself Visually Python_ (2022). This example was presented:
[code]
def parlay(odds1, odds2, odds3 = None, odds4..... More

Print this item

  problem in using enumerate
Posted by: akbarza - Oct-09-2023, 01:12 PM - Forum: General Coding Help - Replies (4)

hi
in below code:
[python]name=["ali", "mohammad","fatemeh"]
age=[9,8,12]
fields=["engineering","pilot","doctor"]
result=list(zip(name,age,fields..... More

Print this item

  alpha advantage api question
Posted by: jacksfrustration - Oct-09-2023, 12:21 PM - Forum: General Coding Help - Replies (1)

Basically i want to build an app that checks the closing price of a company every day. This app will check th two previous dates closing prices. In th..... More

Print this item

  UndefinedEnvironmentName: 'extra' does not exist in evaluation environment
Posted by: EarthAndMoon - Oct-09-2023, 08:47 AM - Forum: General Coding Help - Replies (3)

I'm trying to bundle a game (made with Ursina) to an .exe with Pyinstaller, but it doesn't work.

The imports of the main game file:

[python]from..... More

Print this item

  Symplify symbolic expression
Posted by: Pavel_47 - Oct-08-2023, 06:34 PM - Forum: Data Science - Replies (1)

Hello,
Using lcapy module produced following expression for transfer function:
H
⎛ s⋅(C_d + C_id) ⎞
⎜───..... More

Print this item

Sad Help! Program in python
Posted by: lana - Oct-08-2023, 04:37 PM - Forum: Homework - Replies (4)

Write a program that determines whether a point falls on
given coordinates into the shaded area. Points on the border
belong to the area. Obtain the..... More


Attached Files

Thumbnail(s)
   

.pdf   111.pdf (Size: 266.27 KB / Downloads: 250)
.pdf   222.pdf (Size: 140.72 KB / Downloads: 228)
Print this item

Question Write a program in python
Posted by: lana - Oct-08-2023, 04:20 PM - Forum: Homework - Replies (6)

Write a program in python that, based on the entered argument value,
calculates the value of a function specified as a graph.
[i]Sorry for my ..... More


Attached Files

Thumbnail(s)
   
Print this item

  best practice example data science
Posted by: mostafa705 - Oct-08-2023, 07:10 AM - Forum: News and Discussions - Replies (1)

hi all !
Can anyone to help to introduce the best practice example reference or book for data science using python?
(I want only practice data scien..... More

Print this item

  Coding error.
Posted by: xflyerwdavis - Oct-07-2023, 05:42 PM - Forum: General Coding Help - Replies (2)

I am using Python programming by John Zelle. I am trying to work on the example on page 12. I am coding exactly as it is coded in the example. I am ge..... More

Print this item

  An interesting BUG with double assignment
Posted by: Gribouillis - Oct-07-2023, 04:34 PM - Forum: News and Discussions - Replies (2)

I came across the following bug

D = dict()
D = D['spam'] = dict()
I expected that D['spam'] = dict() would create ..... More

Print this item

  How can I create menu in Python?
Posted by: khagan07 - Oct-07-2023, 12:32 PM - Forum: General Coding Help - Replies (1)

[img]file:///var/folders/qj/mb_4t21d44d15cz2nwpfklfr0000gn/T/TemporaryItems/NSIRD_screencaptureui_IurOyY/Ekran%20Resmi%202023-10-07%2013.31.24.png[/im..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to add Permanent Sign... 2 minutes ago vmars316 vmars316 General Codin...
  veri kazıma 1 hour ago fehmikonkur fehmikonkur Web Scraping ...
  Can I develop a live vide... Today, 06:20 mtrkhan Jmathew1 Web Scraping ...
  Post Body (for "Forum Usa... Yesterday, 06:17 hihi hihi Board
  None collapsing Tuple at ... Yesterday, 05:21 hihi hihi Code Review
  [Tkinter] Label & OptionM... Yesterday, 02:21 slate slate GUI
  Code stoped working 07-19, 10:55 OldMan57 DeaD_EyE News and Disc...
  ASCII-Codec in Python3 [S... 07-19, 08:53 AlphaInc Gribouillis General Codin...
  How scan all ips from mai... 07-18, 19:09 ramin_malek MaahirThomas Networking
  gpiozero buttons stop wor... 07-18, 15:10 duckredbeard deanhystad General Codin...
  [PyGame] Made my first Py... 07-17, 23:12 andrerocha1998 Ricky1178 Game Developm...
Most views
  The best Prog... 572787
  Tutorial Requ... 485871
  Web Scraping ... 437249
  Newbie with P... 380271
  Thread remain... 351442
Most reputation
buran 581
snippsat 507
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+ 12073
buran 8177
snippsat 7353
deanhystad 6862
metulburr 5152
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
netspeck Today
Slackey Today
zmasonfrnceso5662 Today
Stephenanern Today
Jmathew1 Today

User Panel Messages

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