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,394
» Latest member: zcharlesoogleto9533
» Forum threads: 38,823
» Forum posts: 176,027

Full Statistics

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

Latest Threads
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
4 hours ago
» Replies: 1
» Views: 47
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,590
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 183
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,598
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 149
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 296
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,110
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,960
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 179
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 112

 
  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: 304)
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: 313)
.pdf   222.pdf (Size: 140.72 KB / Downloads: 274)
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

  try_finally question
Posted by: akbarza - Oct-07-2023, 11:22 AM - Forum: General Coding Help - Replies (3)

hi
I saw the below code on the net:
[python]def foo():
try:
return 1
finally:
return 2


k=foo()
print(k)[/pytho..... More

Print this item

  Isolate all images from a pdf document
Posted by: cybertooth - Oct-07-2023, 07:46 AM - Forum: General Coding Help - Replies (7)

Hi everyone. I am trying to isolate images from a pdf file. The problem I am facing is that all the images are not isolated, out of the 3 images the c..... More


Attached Files

.pdf   doc3.pdf (Size: 201.99 KB / Downloads: 243)
Print this item

  IP address for users
Posted by: Robots - Oct-07-2023, 06:10 AM - Forum: Networking - Replies (4)

Hi all -

Using Python 3 .

I have been tasked with logging the IP address, date and time when users attempt to access a database. There are many..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Opencv findContours Q 4 hours ago jogl Pedroski55 General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
Most views
  The best Prog... 580410
  Tutorial Requ... 519549
  Web Scraping ... 442785
  Newbie with P... 386984
  New Users Int... 386536
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
zcharlesoogleto9533 Today
MaxTranslate Yesterday
pizofreude Yesterday
RockHound_Z12 Yesterday
braillescribe 12-28

User Panel Messages

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