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,470
» Latest member: ishaD
» Forum threads: 38,578
» Forum posts: 174,808

Full Statistics

Online Users
There are currently 727 online users.
» 0 Member(s) | 722 Guest(s)
Bing, Google, Yandex, Applebot

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 198
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 149
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,333
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 114
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 401
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,207
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 371
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 442
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 1,004
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 257

 
  I'm trying to make my Alexa/Echo dot 3 powered by ChatGPT....
Posted by: mariozio - Apr-09-2023, 02:44 PM - Forum: General Coding Help - Replies (1)

Hello.

I'm trying to make my Alexa/Echo dot 3 powered by ChatGPT. I would like to integrate ChatGPT into my Alexa / Echo dot 3. I want to have more..... More

Print this item

  Need help for script access via webdriver to an open web page in Firefox
Posted by: Clixmaster - Apr-09-2023, 10:49 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi@all,

I have the following task:

In a form in a LogIn area, keywords are to be entered one after the other into an input field with the ID "tags",..... More

Print this item

  switch case not working
Posted by: Username0089098 - Apr-09-2023, 05:01 AM - Forum: General Coding Help - Replies (1)

I am trying to read a file using a switch case and an input.




[python]while True:
choice = input("(1) Write A File\n(2) Read A File\n(3) Ap..... More

Print this item

  [Hiring] Looking for Data Sci/ML consultant to advise on a project
Posted by: pandadad123 - Apr-09-2023, 04:12 AM - Forum: Jobs - Replies (1)

Hi, I'm looking for a senior level data scientist with ML experience to advise us on a project that is in the requirements finding/discovery stage. T..... More

Print this item

  python convert multiple files to multiple lists
Posted by: MCL169 - Apr-08-2023, 10:36 PM - Forum: General Coding Help - Replies (6)

year = '1990'

filename = open('FF_abbreviated.txt')

for i in filename:
    print(i)
[output]19260701 0.09 0.22 ..... More

Print this item

  Is the following code returning a generator expression?
Posted by: quazirfan - Apr-08-2023, 07:30 PM - Forum: General Coding Help - Replies (8)

I am reading Python documentation on in operator,

Source: https://docs.python.org/3/reference/expr...operations

6.10..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
Most views
  The best Prog... 564689
  Tutorial Requ... 453821
  Web Scraping ... 429670
  Newbie with P... 365144
  Thread remain... 337532
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ishaD Today
fitobar43 Today
AymanNassar Yesterday
Shailesh 05-15
jackdennis272 05-15

User Panel Messages

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