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

Full Statistics

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

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

 
  restrict user input to numerical values
Posted by: MCL169 - Apr-08-2023, 04:45 PM - Forum: General Coding Help - Replies (2)

[python]while True:
year = input('please enter a 4-digit year: ')

digit = len(year)

if digit != 4 and year != int:
print("..... More

Print this item

  [SOLVED] [regex] Why isn't possible substring ignored?
Posted by: Winfried - Apr-08-2023, 01:08 PM - Forum: General Coding Help - Replies (4)

Hello,

I need to loop through a list of URLs to grab each page's title, which might contain a substring I want to ignore.

For some reason, the s..... More

Print this item

  Deitel book "Python for Programmers"
Posted by: ricardian - Apr-08-2023, 11:57 AM - Forum: General Coding Help - Replies (7)

Deitel book "Python for Programmers" page xxxv.
Command "jupyter labextension install @jupyter-widgets/jupyterlab-manager" fails with error "Jupyter..... More

Print this item

  How to verify widening conversion?
Posted by: quazirfan - Apr-08-2023, 03:54 AM - Forum: General Coding Help - Replies (1)

I am trying to understand why I can not see int to float widening in Python bytecode.

here is the code:

import dis
dis.dis("5.0 == 5")

Outpu..... More

Print this item

Bug New to coding, Using the zip() function to create Diret and getting weird results
Posted by: Shagamatula - Apr-07-2023, 11:29 PM - Forum: General Coding Help - Replies (6)

Hey guys im new to coding doing a mature student diploma, im doing my 3rd project for the course and im getting results that don’t make sense. Please ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Interpreting this code
Posted by: EmBeck87 - Apr-07-2023, 04:36 PM - Forum: Homework - Replies (4)

Hello, I have a dumb question- can someone tell me in layperson terms what this code is doing? I'm worried it is excluding the values I want 'LMU' ins..... More

Print this item

  Selenium undetected Chromedriver Bot
Posted by: Laurin0000 - Apr-07-2023, 10:20 AM - Forum: Web Scraping & Web Development - Replies (1)

I am trying to create an bot that locates an item checks it for discount and price and then decides to clicks it or not. But the bot isnt able to loca..... More

Print this item

  when package built, requirements not installed
Posted by: sabuzaki - Apr-07-2023, 07:10 AM - Forum: General Coding Help - Replies (1)

Hello,

I'm new to packaging, but using setup.py file. I have included this line [1] in setup.py, built the package using command [2], uploaded to t..... More

Print this item

  programming OpenOffice with External Python Project
Posted by: bobthebuilder44 - Apr-07-2023, 05:24 AM - Forum: General Coding Help - Replies (1)

I am unable to program Openoffice documents from a python project.

Here is my Python code:

[python]filename = 'somefile.ods'

import Danny.OOo..... More

Print this item

  attempt to split values from within a dataframe column
Posted by: mbrown009 - Apr-07-2023, 01:54 AM - Forum: Data Science - Replies (9)

I have the following code snippet from my script

[python]cleandata["year3paytest"] = cleandata.apply(lambda x: semiannualpayments(x["owneroccupancy..... More

Print this item

  Asyncio weird behaviour
Posted by: vugz - Apr-06-2023, 09:53 PM - Forum: General Coding Help - Replies (2)

I am having difficulties understanding the output of the following program

[python]
import asyncio

async def inner():
try:
print("Inside..... More

Print this item

  SSLContext for mTLS
Posted by: vshaik - Apr-05-2023, 07:58 PM - Forum: General Coding Help - No Replies

Hello,

I need to sign my http request using a cert and a key.

[python]ctx = ssl.create_default_context()
ctx.load_cert_chain(certfile="C:/tes..... More

Print this item

  Sum up Time difference
Posted by: tester_V - Apr-05-2023, 05:15 AM - Forum: General Coding Help - Replies (10)

Greetings!
I’m calculating the time difference between some start and finish time stamps and need to sum up the outcome for each file.
Here is a sni..... More

Print this item

  Math python question
Posted by: Deonvek - Apr-05-2023, 02:04 AM - Forum: General Coding Help - Replies (6)

But the highlight of my blog post was definitely my collection of anal sex sites. From big-name production studios to independent creators, I had it a..... More

Print this item

  Using log to calculate difference
Posted by: EmBeck87 - Apr-04-2023, 07:56 PM - Forum: General Coding Help - Replies (1)

Hello, I have some code for diluting the difference between results using numpy.log. It goes like:

df[new value]=(np.log(df[values1]-nplog(df[values2..... More

Print this item

  Strange issue with tkcalendar
Posted by: dady - Apr-04-2023, 07:46 PM - Forum: General Coding Help - Replies (1)

Hi all,

Like it says in the subject i have a strange issue with tkcalendar.

I have this line of code on script 1.py:

[python]result = subproc..... More

Print this item

Question Responding correctly to HTTP request
Posted by: Calab - Apr-04-2023, 07:03 PM - Forum: Web Scraping & Web Development - Replies (2)

I have a Linux host that is running Apache. I am able to execute my Python 3 scripts on that host using a web request.

My problem is that I don't ..... More

Print this item

  How to add list to dictionary?
Posted by: Kull_Khan - Apr-03-2023, 07:08 PM - Forum: General Coding Help - Replies (3)

Hey, how would I add a nested list to a dictionary based on the dictionary key and list element. Say the dictionary represented the columns of a datas..... More

Print this item

  Sum of changing general term
Posted by: Vantin19 - Apr-03-2023, 06:58 PM - Forum: General Coding Help - Replies (2)

Good evening everyone,
I want to compute every possible result of this sum:

\[ v= \sum_{k=1}^j 9 + \sum_{k=1}^{10-j} \delta(v_k) = 2\cdot 40 \te..... More


Attached Files

Thumbnail(s)
   
Print this item

Question Extracting Version Number from a String
Posted by: britesc - Apr-03-2023, 05:45 PM - Forum: General Coding Help - Replies (2)

Hi,
I would like to be able to extract the version number (nimbers and ,) from a string.
I can get the result but only if I use 1 type of delimeter..... More

Print this item

  find random numbers that are = to the first 2 number of a list.
Posted by: Frankduc - Apr-03-2023, 01:58 PM - Forum: General Coding Help - Replies (23)

Hello,

I have a list. start_list = [1,2] and a random_list[]

My goal is to find 4 random numbers where the 2 first numbers are the same as my st..... More

Print this item

  Flask: sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
Posted by: pythonpaul32 - Apr-03-2023, 01:02 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

I am trying to update a database table and I keep getting this error:

'sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database ..... More

Print this item

  Word documents merging
Posted by: crewdk - Apr-02-2023, 09:49 PM - Forum: General Coding Help - Replies (1)

Hi,

I have a task: I have an XLSX document with data such as name, surname, class, school ID, etc. I also have a template for the Certificate of Ap..... More


Attached Files

Thumbnail(s)
       
Print this item

  Can someone please help?
Posted by: SuchUmami - Apr-02-2023, 11:26 AM - Forum: General Coding Help - Replies (1)

Hello,

I am a day trader and I have been trying to automate my strategy through python. Unfortunately last year I lost a lot of money from the FTX ..... More

Print this item

  math formula does not give the same result as bash script [SOLVED]
Posted by: AlphaInc - Apr-02-2023, 09:37 AM - Forum: General Coding Help - Replies (3)

Hello everybody,

I was working on a script which gets the current date of the islamic calendar. I know there is a pip-module which converts a Georg..... More

Print this item

  Using list comprehension with 'yield' in function
Posted by: tester_V - Apr-02-2023, 05:25 AM - Forum: General Coding Help - Replies (5)

Greetings!
I'm trying to speed up my script and I thought I'll use List Comprehensions in a Function.
[python] from pathlib import Path
some_dir = ..... More

Print this item

  Web scraper not populating .txt with scraped data
Posted by: BlackHeart - Apr-01-2023, 07:08 PM - Forum: Web Scraping & Web Development - Replies (5)

Hey everyone,

I was wondering if I could get you guys to help me out a little. I'm attempting to make a web scraper to scrape a site for some strin..... More

Print this item

  Can we use Python 4's end keyword in Python 2.7?
Posted by: mqnc - Apr-01-2023, 01:39 PM - Forum: General Coding Help - Replies (4)

Because of my ancient animation pipeline, I am stuck with python 2.7. I saw that python 4 will have an end keyword which can already be used in python..... More

Print this item

  Is it Possible to pause a script?
Posted by: tester_V - Mar-31-2023, 09:58 PM - Forum: General Coding Help - Replies (6)

Greetings!
I was wondering if it is possible to pause a Python script when it is running.
Ctrl+C aborts a script,
Is there anything I can do to p..... More

Print this item

  Code for pullng all data in a column
Posted by: EmBeck87 - Mar-31-2023, 09:19 PM - Forum: General Coding Help - Replies (5)

Hi all, could someone suggest some code for pulling all the data from one column in a dataframe that was pulled in? I have tried a couple different co..... More

Print this item

  Why is the program not running? Is there a logical or syntax problem?
Posted by: behi00 - Mar-31-2023, 08:43 PM - Forum: GUI - Replies (10)

Hello, I am an amateur programmer.
I wanted to know if my codes are correct?
And why is it not implemented?
Meanwhile, I wrote this program in t..... More

Print this item

  How should I run pip-date in python3?
Posted by: newbieAuggie2019 - Mar-31-2023, 08:49 AM - Forum: General Coding Help - Replies (5)

Hello once again!

I keep trying to see the date of the installation of my modules in python3.

I installed for that task even one more module ca..... More

Print this item

  How to see the date of installation of python modules.
Posted by: newbieAuggie2019 - Mar-31-2023, 08:27 AM - Forum: General Coding Help - Replies (4)

Hi again!

As my knowledge is still very very limited, I learn mostly by imitating code and then later on, I expand it or manipulate it, till I get ..... More

Print this item

  Getting names from object dot-syntax acess
Posted by: pedropessoa - Mar-30-2023, 06:51 PM - Forum: General Coding Help - Replies (2)

Hello,
I'm trying to create a object which can use the names provided by python-dot-syntax.
I would use these names as a path to lookup for data in ..... More

Print this item

Question If, elif, and else statement not working
Posted by: PickleScripts - Mar-30-2023, 02:34 PM - Forum: General Coding Help - Replies (3)

#Whenever I put something in for the input it always says "That's Good!"
[python]
import time
user_action = "user"

print ("wassup")
time.sleep ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 7 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... 578695
  Tutorial Requ... 509169
  Web Scraping ... 441845
  Newbie with P... 385797
  New Users Int... 375097
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
lary_p Today
Cristiano Yesterday
Alfredd Yesterday
clayote Yesterday
yutaozhou 11-07

User Panel Messages

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