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,936
» Latest member: AstoundzSEO
» Forum threads: 38,722
» Forum posts: 175,509

Full Statistics

Online Users
There are currently 46 online users.
» 3 Member(s) | 36 Guest(s)
Bing, Google, AOL, Applebot, AOL, Google Image, buran, voidtrance, Alexandros

Latest Threads
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
7 minutes ago
» Replies: 0
» Views: 3
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 3,044
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,464
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 488
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 740
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,856
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 842
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 427
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,384
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,603

 
  How does UnboundLocalError work?
Posted by: deanhystad - Feb-24-2022, 09:06 PM - Forum: General Coding Help - Replies (3)

While answering a question on the forum I wrote an example where I knew the outcome, but I don't understand the reason for the outcome.
[python]check..... More

Print this item

  DNS qery library
Posted by: Skaperen - Feb-24-2022, 08:45 PM - Forum: News and Discussions - Replies (7)

i recall seeing a library suitable for very specific DNS queries. i can't find it, now. looking in pypi i find tons of stuff for dns. but, i can't ..... More

Print this item

  Nested functions: calculation is not performed
Posted by: alexfrol86 - Feb-24-2022, 03:42 PM - Forum: General Coding Help - Replies (4)

Hi! Below is my code performed as nested functions. The iterations go not through all lines but only within lines 14-16. Thus, I receive no results. I..... More

Print this item

  String concatenation in SQL update statement
Posted by: hammer - Feb-24-2022, 03:22 PM - Forum: General Coding Help - Replies (3)

In the following Update statement i get shown Exception. Below are the arguments.
Could it be the parentheses around argg that is causing issue?
If..... More

Print this item

  Python versions with libexpat fixes
Posted by: raghupcr - Feb-24-2022, 12:36 PM - Forum: General Coding Help - Replies (5)

Hi Friends,

Anyone having information about the python versions in which the libexpat security issues are getting fixed

below is the bug id for ..... More

Print this item

  Program that allows to accept only 10 integers but loops if an odd number was entered
Posted by: gachicardo - Feb-24-2022, 05:15 AM - Forum: Homework - Replies (4)

Hello! first post here, and it's my first time using Python. I was given a task about creating a console program in Python that allows to accept only ..... More

Print this item

  Some line code explanation
Posted by: Chrilo06 - Feb-24-2022, 03:57 AM - Forum: Homework - Replies (3)

Hello I am new to python and I still get confused in some parts. I have this code that I want to understand. I can understand most of it but I get con..... More

Print this item

  Confidence interval after doing penalised cox regression
Posted by: HatemAli - Feb-23-2022, 11:02 PM - Forum: General Coding Help - No Replies

Dear All
In scikitlearn link:
https://scikit-survival.readthedocs.io/e...oxnet.html

It shows how to do penalised cox regression..... More

Print this item

  Exception handler problem
Posted by: Leo - Feb-23-2022, 10:51 PM - Forum: Homework - Replies (10)

Hello everyone. This is my first post so forgive me if I do something wrong.

Here's the problem given to me by my professor:

The coefficient of ..... More

Print this item

  Scope of variable confusion
Posted by: Mark17 - Feb-23-2022, 09:46 PM - Forum: General Coding Help - Replies (10)

Hi all,

Here's a simple code:

global check

check = 0

def sample_fcn():
  check += 1

sample_fcn()

print(check)
..... More

Print this item

  BeautifulSoup not parsing other URLs
Posted by: giddyhead - Feb-23-2022, 05:35 PM - Forum: Web Scraping & Web Development - No Replies

Hello again everyone. The following issue I have currently at hand. The script runs to the second page for example "https://www.startpage.com/lookup/..... More

Print this item

  Trying to determine attachment file type before saving off..
Posted by: cubangt - Feb-23-2022, 04:23 PM - Forum: General Coding Help - Replies (1)

So i have the following code in order to save email attachments from emails within a folder.. and cant seem to figure out how to check the attachment ..... More

Print this item

  Problems with ValueMember vs DisplayMember with combobox
Posted by: dford - Feb-23-2022, 02:04 PM - Forum: GUI - Replies (7)

I might have included more code than necessary. The code in question is the last four lines.

What I get in the display is a concatenation of Inspe..... More

Print this item

  wireless question
Posted by: DPaul - Feb-23-2022, 07:43 AM - Forum: Bar - Replies (5)

Hi,
I want to embark on a Python project, that requires some "wireless" insights. Maybe somebody here can help.
Application purpose: a room with a g..... More

Print this item

  Learning Python, advice on current project
Posted by: Yahweh132 - Feb-23-2022, 03:09 AM - Forum: Code Review - No Replies

I've recently started learning python and have started a project to try and wrap my head around different concepts and to just try to get the general ..... More

Print this item

  testing if an iterator is empty
Posted by: Skaperen - Feb-23-2022, 12:23 AM - Forum: News and Discussions - Replies (9)

is there a way to test if an iterator is empty without "consuming" any content in case it is not empty? does a true/false test accomplish this? i do..... More

Print this item

  try except issue
Posted by: Frankduc - Feb-22-2022, 08:41 PM - Forum: General Coding Help - Replies (12)

Cant make it work.


must be indentation

TY

Print this item

  How do I get rid of "Chrome is being controlled by automated test software"?
Posted by: jetBlack - Feb-22-2022, 08:26 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello! I'm a new member here.

I've made a code here with a tool that most of you are probably familiar with; Selenium.
The code itse..... More

Print this item

  Extract columns from a 2 dimentional table
Posted by: Leyo - Feb-22-2022, 03:49 PM - Forum: Homework - Replies (4)

hello everyone,

I struggle on this exercise:
define a function col(mat, j) allowing to retrieve a column of the matrix. For example col(M, 1) will..... More

Print this item

  Two part scraping?
Posted by: never5000 - Feb-22-2022, 02:36 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

I'm trying to figure out 2 things.
1st) Scrape a page for all it's News Links
2nd) Using those scraped links - open each link and scrape tha..... More

Print this item

  grouped bar graphs
Posted by: tobiasfw - Feb-22-2022, 01:31 PM - Forum: General Coding Help - Replies (1)

Hello,

I have the following data frame and would like to make a grouped bar graph:

BAKERY DAYTIME BREAD_SOLD
Smith Morning 124
Sm..... More

Print this item

Shocked Issues Installing Pyenv/Python 3.9.1
Posted by: Brandon_Contactum - Feb-22-2022, 11:28 AM - Forum: General Coding Help - Replies (1)

Hello Support,

Unsure if this is the correct category to post this, but I am finding some issues installing Python 3.9.1.

The device I am tryi..... More


Attached Files

Thumbnail(s)
   
Print this item

  Upload image to Instagram using python/selenium using image URL failed, need help
Posted by: greenpine - Feb-22-2022, 10:53 AM - Forum: General Coding Help - Replies (5)

Hello;
I try to post images to Instagram using python selenium, but when I want to use the image URL I get an error.
when I use an absolute path to th..... More

Print this item

  python audio analysis
Posted by: kiyoshi7 - Feb-21-2022, 11:53 PM - Forum: General Coding Help - Replies (3)

Hi, I have a small project where I have a mechanical clock and I record it ticking (pic below) and I would like to be able to identify the tick first ..... More

Print this item

  Conversion from hexa to decimal in loop bugging
Posted by: Personne - Feb-21-2022, 11:37 PM - Forum: General Coding Help - Replies (1)

Hi guys,

I believe I'm hitting a bug, here is my piece of code:

[python]def allcolors():

query = db.session.query(BLColor).order_by(BLCol..... More

Print this item

  Try except how is it working?
Posted by: Frankduc - Feb-21-2022, 08:22 PM - Forum: General Coding Help - Replies (6)

I am trying to make it work. The code ask for 3 values and return the highest value.
If input is a string. I want to handle the error with an excepti..... More

Print this item

  Looking for advice on funstionality of python
Posted by: bradkernohan - Feb-21-2022, 07:54 PM - Forum: General Coding Help - Replies (1)

Hi All,

New to Python. Wondering if anyone can provide me some insight as to whether Python can handle the type of functionality I'm looking for...... More

Print this item

  Check if specific program is used
Posted by: alex_laco - Feb-21-2022, 05:27 PM - Forum: General Coding Help - Replies (3)

Hey guys,
please I have a question.
I need to check if the user working with a specific program. For example. I need run the function only when prog..... More

Print this item

  Search multiple CSV files for a string or strings
Posted by: cubangt - Feb-21-2022, 04:56 PM - Forum: General Coding Help - Replies (7)

So i have a need to be able to search multiple CSV files for a string or set of strings and then return the file name that it was found in.

I want ..... More

Print this item

  How should write a command for frequency?
Posted by: Raselrameda - Feb-21-2022, 02:12 PM - Forum: Homework - Replies (2)

How should write a command for frequency?
[python]
_Frequency of different number of doors (2, 3, 4, and 5)
_Frequency of different fuel types (Pet..... More

Print this item

  Distinguishing different types of class attributes
Posted by: Drone4four - Feb-21-2022, 02:02 PM - Forum: General Coding Help - Replies (4)

I’m learning Python OOP and I am struggling to understand the difference between defining the two different kinds of class attributes - - static attri..... More

Print this item

  Nested functions. Equation equal to zero works in a wrong way
Posted by: alexfrol86 - Feb-21-2022, 01:34 PM - Forum: General Coding Help - Replies (6)

Hi there! The following block of code works, but the results are presented as the list of formulas. Before I have included lines 18-22 (lines relate t..... More

Print this item

  openpyx (ValueError: Style Consolas exists already)
Posted by: Irv1n - Feb-21-2022, 01:04 PM - Forum: General Coding Help - No Replies

My code:
[python]class Excel:
def __init__(self) -> None:
self.wb = xl.Workbook()

del self.wb['Sheet']
self..... More

Print this item

  Migration of Python2 and Python3 using Modernize and Future
Posted by: Rakshan - Feb-21-2022, 12:12 PM - Forum: General Coding Help - Replies (5)

I am working on the migration of files from Python2.7 to Python3+. As a part of preparation, I have come across utility 2to3, Modernize ..... More

Print this item

  Solving equation equal to zero: How to resolve the syntax error?
Posted by: alexfrol86 - Feb-21-2022, 07:09 AM - Forum: General Coding Help - Replies (3)

Hello!

When solving a system of equations, I need to take into account an additional equation equal to zero. To include this equation, I use sympy...... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  C++ program embedding Pyt... 7 minutes ago Alexandros Alexandros General Codin...
  403 Error Yesterday, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Yesterday, 11:22 RonR RonR GUI
  datetime in SQL query. Yesterday, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
Most views
  The best Prog... 576033
  Tutorial Requ... 497479
  Web Scraping ... 439994
  Newbie with P... 383743
  New Users Int... 366230
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+ 12088
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
AstoundzSEO Today
tobey12 Today
alexguemez Yesterday
Shadab Yesterday
Dibbley Yesterday

User Panel Messages

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