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,938
» Latest member: atylerfraces2254
» Forum threads: 38,722
» Forum posts: 175,511

Full Statistics

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

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 04:28 PM
» Replies: 11
» Views: 4,124
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 601
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,526
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 947
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,440
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,288
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,491
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,453
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,600
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 1,161

 
  How to capture string from a line to certain line
Posted by: jerald - Jun-30-2021, 01:16 AM - Forum: General Coding Help - Replies (1)

I have a file called abc.py with has several function which is the code below. I have another python file to extract abc.py as string.
GOAL: h..... More

Print this item

  BeautifulSoup pagination using href
Posted by: rhat398 - Jun-29-2021, 10:22 PM - Forum: Web Scraping & Web Development - Replies (1)

I am trying to scrape all thee events from https://www.onthisday.com/events/february/5 I am get..... More

Print this item

  my python file closing
Posted by: rwahdan - Jun-29-2021, 10:19 PM - Forum: General Coding Help - Replies (1)

I have 2 python files in the same directory. I have a menu that will call the 2nd python file to play a movie after choosing one. It is working fine u..... More

Print this item

  Inheritance vs Union
Posted by: gserranowong - Jun-29-2021, 05:03 PM - Forum: General Coding Help - Replies (3)

First of all, I realize inheritance and Unions are totally two different things. However, I would like to get your opinions on this issue I detail bel..... More

Print this item

  Try,Except,Else to check that user has entered either y or n (Code block pasted)
Posted by: RandomNameGenerator - Jun-29-2021, 03:09 PM - Forum: General Coding Help - Replies (3)

Hey up, pretty simple query. I just want to check the user has entered either y or n , its going straight to the else: regardless of the input
Thanks..... More

Print this item

  I can't play MP4 files
Posted by: rwahdan - Jun-29-2021, 10:58 AM - Forum: GUI - Replies (11)

Hi,

I am trying some code I found in the community but I want to be able to play MP4 files but can't.

[python]
class window(QWidget):
def ..... More

Print this item

  Caesar Cipher Help
Posted by: pbrowne - Jun-29-2021, 07:20 AM - Forum: General Coding Help - Replies (2)

The following Caesar Cypher code is not working (Python 3). The text file is being written, but with incorrect cipher.

e.g. Input text as 'Hello' s..... More

Print this item

  Can I open\use threading in Python?
Posted by: korenron - Jun-29-2021, 06:45 AM - Forum: General Coding Help - Replies (2)

Hello
want to know if I can do this \ how

I have a code that open FTP and send files to my devices from DB list.

my problem is that it take to..... More

Print this item

  Calculator exceptions
Posted by: HereweareSwole - Jun-29-2021, 04:30 AM - Forum: Homework - Replies (5)

Hello everyone,
Could anyone tell me how I could create a exception (error handling) to deal with users who put letters or "+"/"-" into the calculato..... More

Print this item

  Sum similar items
Posted by: tester_V - Jun-29-2021, 04:09 AM - Forum: General Coding Help - Replies (3)

Greetings!
I'm trying to sum(count) similar items in a file.
File example:
[python]
PRQ09_PCX0161Host,DV1
PRQ09_PCX0170Host,PHQ
PRQ09_PCX0171Hos..... More

Print this item

  string.format() suddenly causing errors with google drive API
Posted by: zwitrader - Jun-28-2021, 11:38 PM - Forum: General Coding Help - No Replies

This morning I abruptly started having problems with previously working (unchanged) code to access google drive via their API.

Briefly, the followi..... More

Print this item

  An implementation of Dijkstra's shortest path algorithm
Posted by: Gribouillis - Jun-28-2021, 10:39 PM - Forum: Code sharing - Replies (1)

I wanted an implementation of the shortest path algorithm in the case where the nodes of a potentially infinite graph are generated on the fly, so her..... More

Print this item

  is this a good way to catch exceptions?
Posted by: korenron - Jun-28-2021, 10:28 AM - Forum: General Coding Help - Replies (14)

Hello ,
I have a small app that uplaod file to my devices using FTP and update the DB.
it's working
my question is - is the "Exceptions" part good? ..... More

Print this item

  [Solved] Reading every nth line into a column from txt file
Posted by: Laplace12 - Jun-28-2021, 09:47 AM - Forum: General Coding Help - Replies (7)

Hey!

I have a text file that I want to sort out. I've coded this and tried dataframe, but that only prints the last line. The code I have now is t..... More

Print this item

  moving label position
Posted by: rwahdan - Jun-28-2021, 04:35 AM - Forum: GUI - Replies (1)

I am trying to animate a label by moving it little by little. I have the following code but it is not doing anything.

[python]
global status_name..... More

Print this item

  gensim (TfidfModel): How much is the Tf-Idf computed?
Posted by: JaneTan - Jun-28-2021, 04:20 AM - Forum: Data Science - No Replies

Hi

For the below test text ,
test=['test test', 'test toy'],
the tf-idf score is
[['test', 1.0]]
[['test', 0.35], ['toy', 0.94]]

I am not sure h..... More

Print this item

  f string concatenation problem
Posted by: growSeb - Jun-28-2021, 04:19 AM - Forum: General Coding Help - Replies (3)

Hi Group, I'm new. So hopefully I'll figure out how to navigate this forum and get the help I need as I'm trying to learn python. Currently, I'm havin..... More

Print this item

  Complete beginnner making a text based adventure
Posted by: Mishmaccles - Jun-28-2021, 01:27 AM - Forum: Game Development - Replies (2)

Hello there

I’ve decided to start a new hobby and I’m following a tutorial on making a text based adventure.

I’d like to insert a question durin..... More

Print this item

  Imports in my first package
Posted by: cuppajoeman - Jun-27-2021, 11:36 PM - Forum: General Coding Help - Replies (1)

Hi there, I have just created my first package and I'm testing it out before I upload it to pypi. As ..... More

Print this item

  Read and write active Excel file
Posted by: euras - Jun-27-2021, 07:58 PM - Forum: General Coding Help - Replies (4)

Hi, is it possible to read and write an active Excel workbook? All I have found so far, is either create a new Excel and write inn, or provide a path ..... More

Print this item

  script with imports works but pytest gives "ModuleNotFoundError"?
Posted by: Hpao - Jun-27-2021, 05:33 PM - Forum: General Coding Help - No Replies

I'm trying to setup my first python project with pytest but I'm having trouble executing my tests. The module itself seems to be working as intended..... More

Print this item

  Subdividing a column
Posted by: mesh01 - Jun-27-2021, 04:16 PM - Forum: General Coding Help - Replies (8)

Hi,

I have an "input.txt" file which contains this column of numbers:

5 
77 
1
-4
9
17
13
2
1
5
63
8
I wo..... More

Print this item

  statusbars
Posted by: rwahdan - Jun-27-2021, 04:01 PM - Forum: GUI - Replies (4)

Hi,

I need to have only 1 status bar to display some info in the bottom right and some other info in the bottom left but all in the same line (same..... More

Print this item

  books on learning coding
Posted by: alok - Jun-27-2021, 02:28 PM - Forum: News and Discussions - Replies (3)

I purchased the PYTHON CRASH COURSE ,2nd edition. Is there another book that would be very basic on learning this code that someone can recommend. I f..... More

Print this item

  ssh tunnel connection dropped with Python
Posted by: achille - Jun-27-2021, 02:17 PM - Forum: Networking - No Replies

under linux bash, I build ssh tunnel this way:
ssh -ND 5545 -vvv -p 443 user@server

[output][...]
user@server's password:
[...]
de..... More

Print this item

  the first item in listbox
Posted by: rwahdan - Jun-27-2021, 01:40 PM - Forum: GUI - Replies (4)

Hi,

I need to know how to get the value of the first item in the listbox?

song_box.select_set(0)
I think this will only make..... More

Print this item

  How to test and import a model form computer to test accuracy using Sklearn library
Posted by: Anldra12 - Jun-27-2021, 08:42 AM - Forum: General Coding Help - Replies (6)

Which types of data model we can test
like which format don't know i have some model i want to check the accuracy using logistic regression fo..... More

Print this item

  Convert timedelta to specified format
Posted by: Planetary_Assault_Systems - Jun-27-2021, 08:08 AM - Forum: General Coding Help - Replies (3)

Hello

I am currently attempting to create a web dashboard for analytics in Formula1 using plotly and flask as per the article
..... More

Print this item

Brick How to make collisions in isometrick game?
Posted by: Grigory - Jun-26-2021, 04:36 PM - Forum: Game Development - Replies (1)

Win 10
Python 3.9.5

I need to make collisions for my isometric game and for player
Can someone help me?
Sorry for bad english, i from Ukraine.
..... More

Print this item

  Plotting Multiple files !
Posted by: Helen_145 - Jun-26-2021, 01:35 PM - Forum: General Coding Help - Replies (1)

[b]How can I read multiple data files and plot them in the same frame (not separately), like in a video form; first map appears for couple of seconds,..... More

Print this item

  Suitable Data Modelling Packages
Posted by: JoeDainton123 - Jun-26-2021, 12:32 PM - Forum: Data Science - Replies (3)

Hello all

I was wondering if anyone could help me regarding information / guidance on the best packages for data modelling.

I work on the highwa..... More

Print this item

  Very new to Python world
Posted by: daveseaman - Jun-25-2021, 07:17 PM - Forum: General Coding Help - No Replies

I am very new to Python and I would like to wright a script to allow openVpn to open a connection buy a customer number and pull the site key from a f..... More

Print this item

  Turtle onkey()
Posted by: simonc8 - Jun-25-2021, 06:16 PM - Forum: General Coding Help - Replies (12)

Is there a way to write a turtle onkey() statement so it will listen for any letter key, or can you only specify a single key in each onkey() statemen..... More

Print this item

  numpy.savetxt()
Posted by: mesh01 - Jun-25-2021, 04:37 PM - Forum: General Coding Help - Replies (2)

Hi,

this code works fine:

[python]
import numpy as np

data = np.array([3,2,55,4])

for i in range(4):
data[i] = data[i]+3

pr..... More

Print this item

  check if entry is null
Posted by: rwahdan - Jun-25-2021, 03:37 PM - Forum: GUI - Replies (2)

Hi,

I am trying to check if an entry is null but not succeeded to do so.

[python]
cap_entry = sec_entry.get()
if cap_entry in str(image_ra..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error Yesterday, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 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...
Most views
  The best Prog... 576419
  Tutorial Requ... 498218
  Web Scraping ... 440325
  Newbie with P... 384206
  New Users Int... 367243
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+ 12089
buran 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
atylerfraces2254 Yesterday
AdrianCocian Yesterday
humanoidAI Yesterday
Baran12332 09-19
Hershien 09-19

User Panel Messages

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