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,392
» Latest member: bejaminmaarleyo1374
» Forum threads: 38,822
» Forum posts: 176,019

Full Statistics

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

Latest Threads
How Much Does The New Iph...
Forum: General Coding Help
Last Post: bejaminmaarleyo1374
22 minutes ago
» Replies: 0
» Views: 7
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 06:21 PM
» Replies: 1
» Views: 71
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Yesterday, 04:06 PM
» Replies: 9
» Views: 235
IP address for users
Forum: Networking
Last Post: itx_sumeet
Yesterday, 05:53 AM
» Replies: 4
» Views: 7,070
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 01:10 AM
» Replies: 5
» Views: 9,894
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 139
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 84
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 151
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,297
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 111

 
  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

  I am completely lost on this homework assignment
Posted by: a36 - Feb-21-2022, 04:29 AM - Forum: Homework - Replies (1)

Step 1 (50 pts):

The objective of this program is simply to open a file, read each line and display it. Your program should:

Open auth.log.1b. (..... More

Print this item

  How would you (as an python expert) make this code more efficient/simple
Posted by: coder_sw99 - Feb-20-2022, 11:33 PM - Forum: General Coding Help - Replies (3)

Hi,

my question is quite simple: How would you make this piece of code more simple/efficient?

[python]def draw_pattern_1(p,m):
print(p, end..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How Much Does The New Iph... 22 minutes ago bejaminmaarleyo1374 bejaminmaarleyo1374 General Codin...
  How to Integrate External... Yesterday, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... Yesterday, 16:06 eedjsa eedjsa General Codin...
  IP address for users Yesterday, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... Yesterday, 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 ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
Most views
  The best Prog... 580376
  Tutorial Requ... 519139
  Web Scraping ... 442771
  Newbie with P... 386955
  New Users Int... 386289
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
bejaminmaarleyo1374 Today
taylorlitleoz476 Today
desy845 Today
atalieyandext4063 Yesterday
finallen321 Yesterday

User Panel Messages

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