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

Full Statistics

Online Users
There are currently 55 online users.
» 2 Member(s) | 43 Guest(s)
Applebot, Google, Bing, AOL, Facebook, AOL, bella231, Larz60+

Latest Threads
Why Is Assignment Help Au...
Forum: News and Discussions
Last Post: tobey12
2 hours ago
» Replies: 0
» Views: 23
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 2,813
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,234
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 254
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 563
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,723
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 665
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 248
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,203
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,424

 
  Extracting Specific Lines from text file based on content.
Posted by: jokerfmj - Mar-25-2022, 12:42 PM - Forum: General Coding Help - Replies (8)

Hey, all. My apologies as I'm new to python in general, so I'm doing a lot of reading that goes over my head. :)

I'm working on a multi-step process ..... More

Print this item

  name.split() + (And) + print question
Posted by: sklord - Mar-25-2022, 11:57 AM - Forum: Homework - Replies (12)

The problem:

Input = My name is Bob and this is my wife Alice.
Output = Hello Bob and Alice!
else
Input = My name is Bob.
Output = Hello..... More

Print this item

  Results name is a variable itself
Posted by: paul18fr - Mar-25-2022, 08:32 AM - Forum: General Coding Help - Replies (2)

Hi
I do not remember how to proceed for the following assignment without using (hugly) local, global, and so on; the name if the functi..... More

Print this item

  MS access db
Posted by: DPaul - Mar-25-2022, 07:42 AM - Forum: General Coding Help - Replies (6)

Hi,
This question has been asked a 1000 times over the years in various forums.
I had hoped that with python 3.10 things would be smoother. I still ..... More

Print this item

  Change the key value in dictionary
Posted by: quest - Mar-25-2022, 01:42 AM - Forum: General Coding Help - Replies (3)

Hello

I have this dictionary:
[python]
{('i', 'i'): (0.4958635668040591+0.033985852749267645j),
('i', 'x'): (-3.713537562982453e-06-2.578284945..... More

Print this item

  Zero Division Error
Posted by: Leo - Mar-24-2022, 11:48 PM - Forum: Homework - Replies (2)

Hello everyone
This goal of this assignment is to use a separate text file and then use the numbers within it and compute the variance. My professor ..... More

Print this item

  [solved] How to display a pdf-file in a PyQt6 widget
Posted by: BigMan - Mar-24-2022, 10:38 PM - Forum: GUI - Replies (13)

Hello,

The problem
I would like to display a pdf-file in a widget. That widget is part of a layout. Since the pdf files can contain more th..... More

Print this item

  how to make a rectangle
Posted by: shanesgameYT - Mar-24-2022, 10:35 PM - Forum: News and Discussions - No Replies

[b]im trying to make a rectangle on my screen and the rectangle shows up but for a split second after i click the close button this is my code in the ..... More


Attached Files

.py   main.py (Size: 570 bytes / Downloads: 270)
.py   tiles.py (Size: 236 bytes / Downloads: 277)
Print this item

  DELETE Post using Python FaceBook Graph API
Posted by: BIG_PESH - Mar-24-2022, 08:28 PM - Forum: General Coding Help - No Replies

Hey All,

I'm currently programming a Facebook auto poster using the FaceBook Graph API (Facebook-SDK 3.1.0)with Python 3.10.

I have it posting a..... More

Print this item

  unique on 2 columns at the same time
Posted by: paul18fr - Mar-24-2022, 07:40 PM - Forum: Data Science - Replies (2)

Hi,

I'm looking for a way to get unique couple of data on 2 columns here as shown bellow; I had to look to numpy and Pandas, duf on i..... More

Print this item

  Unpacking zip object
Posted by: Mark17 - Mar-24-2022, 06:52 PM - Forum: General Coding Help - Replies (12)

Here's some code:

[Python]
exceptions = 0

a = ['1-6-2017', '1-13-2017', '1-20-2017', '1-27-2017']
b = [265, -10, 130, 330]
c = ['d', '', 'd',..... More

Print this item

  How to speed up nested cycles?
Posted by: alexfrol86 - Mar-24-2022, 06:50 PM - Forum: General Coding Help - Replies (3)

I try to optimize and speed up the code. With numba, it started to work much better, but still takes hours because of a lot of data that should be ite..... More

Print this item

  extracting a function/class/method from code
Posted by: Skaperen - Mar-24-2022, 05:34 PM - Forum: News and Discussions - Replies (5)

i'm not sure how to look for this. i would like a tool that can be given a file (or stdin) with code and the name of a function or class or method wh..... More

Print this item

  Loop through a list of string
Posted by: oldtrafford - Mar-24-2022, 02:48 PM - Forum: General Coding Help - Replies (4)

Hello,
I would like to write the following code,

[python]caeXmlObjects.kernel.mainXML.saveXMLRecords(fileName='settings.xml',
className='cae..... More

Print this item

  Python Encapsulation
Posted by: codinglearner - Mar-24-2022, 12:47 PM - Forum: General Coding Help - Replies (2)

Hi,

Was reading some articles and got this code in the multi-choice option, wanted to know what would be the put of this code?

[code]
class Ba..... More

Print this item

Question How to understand the received bytes of ser.read?
Posted by: pf2022 - Mar-24-2022, 10:51 AM - Forum: General Coding Help - Replies (3)

Hello,

I'm using a function ser.read (from PySerial) to read a sequence of 2000 bytes from a microcontroller. Two received bytes in a sequence are a..... More


Attached Files

Thumbnail(s)
   
Print this item

  background music in the gameloop
Posted by: flash77 - Mar-24-2022, 10:35 AM - Forum: Game Development - Replies (6)

Dear community,

I've got a problem with game development/tkinter...

I generated a form which let the user choose some tracks.
These tracks shou..... More

Print this item

  Deployed Spider on Heroku: How do I email downloaded files?
Posted by: JaneTan - Mar-24-2022, 06:19 AM - Forum: Web Scraping & Web Development - Replies (2)

I am new to web-scraping and deployment of spiders.

1) Basically, I am in the midst of creating a spider to scrape some items and download Exce..... More

Print this item

  Need to fix SyntaxError in cycle try
Posted by: alexfrol86 - Mar-24-2022, 05:21 AM - Forum: General Coding Help - Replies (14)

Hi!
In this block, I need to try all combinations of variables in the ht expression and save only those combinations that ensure the equality of the ..... More

Print this item

  How to split file by same values from column from imported CSV file?
Posted by: Paqqno - Mar-23-2022, 05:33 PM - Forum: General Coding Help - Replies (5)

I am really new into Python and I struggle with this problem. I have data like this in CSV file:

111_0,3005,QWE
111_0,3006,SDE
111_0,3006,LFR
11..... More

Print this item

Question code visualizer that supports pandas
Posted by: rootsmusic - Mar-23-2022, 04:19 PM - Forum: Data Science - Replies (6)

I'm learning pandas, and I need to read .csv data. Is there any code visualizer that supports pandas? Thanks.

Print this item

  nvm
Posted by: Wmivey - Mar-23-2022, 02:15 PM - Forum: General Coding Help - No Replies

Nevermind, I found my issue with my logic.

Print this item

  How to rotate bits ?
Posted by: korenron - Mar-23-2022, 01:36 PM - Forum: General Coding Help - Replies (2)

Hello,
I have a function that take bits and cut them according to my needs
[python]
BITS_ORDER_CHANGE = {8: 0, 7: 1, 6: 2, 5: 3, 4: 4, 3: 5, 2: 6, ..... More

Print this item

  Am I dumb?
Posted by: aidh18 - Mar-22-2022, 09:51 PM - Forum: General Coding Help - Replies (2)

I am relatively new to python, and I thought I understood the basics of it already, but for some reason, this one block of code is giving me so many p..... More

Print this item

  Function combining file manipulation and loop
Posted by: Leyo - Mar-22-2022, 08:50 PM - Forum: Homework - Replies (5)

good evening,
could I ask for some help with this assignment?

[quote]We want to save a list of words in a file so that we can reuse it later.

D..... More

Print this item

  Dunder Methods
Posted by: menator01 - Mar-22-2022, 07:03 PM - Forum: General Coding Help - Replies (8)

I'm trying to get a basic understanding of dunder methods. Using the example below. How do I return the msg?
I'm thinking it just doesn't automatical..... More

Print this item

  x-axis labels with Matplotlib
Posted by: Mark17 - Mar-22-2022, 06:26 PM - Forum: General Coding Help - Replies (8)

Hopefully this isn't too hard to follow.

Fri_2017 is a list of the first 20 Fridays in 2017 as type datetime.datetime .

I also have this:

[Py..... More

Print this item

  Can ZipFile be used to extract hidden files?
Posted by: AiedailEclipsed - Mar-22-2022, 05:21 PM - Forum: General Coding Help - No Replies

I asked this question over on StackOverflo[url=https://python-forum.io/thread-36720.html]..... More

Print this item

  Creating/Moving file
Posted by: DeadlyKnight - Mar-22-2022, 03:39 PM - Forum: Homework - Replies (3)

Hey guys!

I would like a bit of help please.

In short, I'd like
-User input, naming a file
-Automatically add the .txt extension
-If the fi..... More

Print this item

  Jupyter:On my computer, where csv file is?
Posted by: Leloup - Mar-22-2022, 10:47 AM - Forum: Data Science - Replies (2)

Bonjour,

I have been using Jupyter for a month. To train myself with the pandas libraries, I used the Santé France website to get a dataset as a cs..... More

Print this item

  selenium returns junk instead of html
Posted by: klaarnou - Mar-22-2022, 10:41 AM - Forum: Web Scraping & Web Development - Replies (5)

Hello,

I am trying to scrape a dynamic website with selenium.
HTML is rendered in the <app-root></app-root> tag.
If I inspect the website in chro..... More


Attached Files

Thumbnail(s)
       
Print this item

  BTC Pricce and PyQt5
Posted by: BlindMate - Mar-22-2022, 10:04 AM - Forum: GUI - No Replies

Hello,

I am a beginner in Python and I ran into some issues.

I want to creaate an App that shows me the real time Bitcoin proce.
I managed to g..... More

Print this item

  can not install pymesh in ubuntu
Posted by: jerry - Mar-22-2022, 09:53 AM - Forum: General Coding Help - Replies (2)

Hello everyone, when I input “cmake ..” in build, the following error appears, I do not know how to solve the following problem, thank you!
-- Could ..... More

Print this item

Question Error with MatPlotLib subplots
Posted by: Danno - Mar-22-2022, 04:15 AM - Forum: General Coding Help - Replies (8)

Hi.

I've been trying to create subplots with MatPlotLib, FinPlot, Ta-Lib, and Seaborn. Constant errors. I've tried Python V 3.9.x and 3.10.x us..... More

Print this item

  make eval() safe
Posted by: Skaperen - Mar-22-2022, 02:43 AM - Forum: News and Discussions - Replies (5)

is there a way to easily make eval() safe to use with a string from an untrusted source?

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Why Is Assignment Help Au... 2 hours ago tobey12 tobey12 News and Disc...
  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... 575973
  Tutorial Requ... 497387
  Web Scraping ... 439941
  Newbie with P... 383680
  New Users Int... 366125
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
python 6
metulburr 6
NonEntity 6
buran 3
Newest members
tobey12 Today
alexguemez Yesterday
Shadab Yesterday
Dibbley Yesterday
XenonBlack 09-16

User Panel Messages

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