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,236
» Latest member: Cristiano
» Forum threads: 38,776
» Forum posts: 175,790

Full Statistics

Online Users
There are currently 31 online users.
» 0 Member(s) | 29 Guest(s)
Bing, Google

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

 
  Python Regex
Posted by: quest - Sep-21-2022, 12:16 PM - Forum: General Coding Help - Replies (2)

I have the following text file:
[output]S = 0, X are: (1, 0, 1, 1, 0, 0, )S = 0, Z are: (0, 1, 1, 1, 0, 1, )Data bits measurement:0, 0, 0, 1, 1, 1, 1..... More

Print this item

  Simple calculator
Posted by: ryza - Sep-21-2022, 11:02 AM - Forum: Homework - Replies (3)

[python]
import math

def allString(first, second):

operation = ('add', 'subtract', 'multiply', 'divide')
for v in operation:
print(f"..... More

Print this item

  Import a module one step back of the path
Posted by: prathampatel9 - Sep-21-2022, 09:31 AM - Forum: General Coding Help - Replies (1)

Hi I have the following file structure

Backend
|
--->Main --> app.py
|
--->package --> test.py

[b]NOTE: Here Main and package directories a..... More

Print this item

  How to sort a list with duplicates and return their unique indices.
Posted by: Echoroom - Sep-21-2022, 09:19 AM - Forum: Homework - Replies (3)

Given a list:

lst = [48,52,35,35,44,35]
I want to sort the list in descending order, so I use this:


[python]sorted..... More

Print this item

  Mac os (M2) "Python is loading libcrypto in an unsafe way"
Posted by: jpelayo - Sep-21-2022, 09:11 AM - Forum: General Coding Help - Replies (1)

Hi,

I have migrated to a mac os 12.6 with Python 3.10.7, and scripts involving ssl and hashing now complain with the error

[error]
/Library/Fr..... More

Print this item

  Pylint
Posted by: DPaul - Sep-21-2022, 07:00 AM - Forum: Bar - No Replies

Hi,
Question: to what extent is "pylint" a reliable analysis.
I have applied pylint to a program, and over half the comments are about vars not bein..... More

Print this item

  Hangman Game
Posted by: monkeydesu - Sep-21-2022, 03:11 AM - Forum: Code Review - Replies (1)

I've been teaching myself how to code for a few weeks and did a hangman game all by myself! I'm so chuffed ! Such a good feeling and I still can't bel..... More

Print this item

  i'm back to f-strings, again
Posted by: Skaperen - Sep-20-2022, 06:10 PM - Forum: General Coding Help - Replies (4)

i have a list of file name patterns. where each parameter is expected in the file name varies between names. but, this list has it all. the list wa..... More

Print this item

  Several xml files to dataframe
Posted by: mfernandes - Sep-20-2022, 03:46 PM - Forum: General Coding Help - Replies (2)

I have several xml files that I want to transform into a dataframe. Each xml file should be in one row. Here is an example of a xml file:
[python]
<..... More

Print this item

  create a "sound" server
Posted by: korenron - Sep-20-2022, 01:56 PM - Forum: General Coding Help - Replies (4)

Hello,
I have a mic connected to my pi
and up until now - when I wanted to hear from the mic I have run this command
[python]ffmpeg -ar 44100 -a..... More

Print this item

  Beginner Python Question: FIzz Buzz using while loop
Posted by: camoyn13 - Sep-20-2022, 03:53 AM - Forum: Homework - Replies (2)

Hello,

Having an issue with the Fizz Buzz challenge using the While Loop. Any help would be greatly appreciated. Please note I HAVE TO USE t..... More

Print this item

  Problems with understanding class index.
Posted by: Brainbit - Sep-20-2022, 03:16 AM - Forum: General Coding Help - Replies (3)

[python]class Store():
Money = 5.00
Day = 1
Stores = []
def __init__(self,StoreName,StoreProfit,storecost):

self.StoreName = ..... More

Print this item

  pyqt6 and random emoji
Posted by: menator01 - Sep-19-2022, 06:46 PM - Forum: Code sharing - No Replies

Just thought it was kinda cool.

[python]from PyQt6.QtWidgets import (QLabel, QApplication, QWidget, QMainWindow, QVBoxLayout, QPushButton)
import ..... More

Print this item

  Unsupported Format Character
Posted by: Led_Zeppelin - Sep-19-2022, 03:48 PM - Forum: General Coding Help - Replies (2)

I got this error of unsupported format character, As shown:

[output]
ValueError Traceback (most recent call last)
..... More

Print this item

  Remove tag several xml files
Posted by: mfernandes - Sep-19-2022, 03:43 PM - Forum: General Coding Help - Replies (5)

Dear python users,
I want to drop the same tag in several xml files in one folder. Here is a sample of one xml file:
[python]
<?xml version='1.0' e..... More

Print this item

  WebDriver' object has no attribute 'find_element_by_css_selector
Posted by: rickadams - Sep-19-2022, 01:48 PM - Forum: General Coding Help - Replies (3)

[output]DevTools listening on ws://127.0.0.1:56769/devtools/browser/34ec545d-5d6c-434d-86c6-fc77922dbfe6

DevTools listening on ws://127.0.0.1:56770..... More

Print this item

  processes shall be parallel
Posted by: flash77 - Sep-19-2022, 12:54 PM - Forum: General Coding Help - Replies (4)

Hi,

how can I get this multi processing example working in the easiest way?

I 've got 4 processes, each process lasts 2 seconds.

How can I ge..... More

Print this item

  Server Http and Https
Posted by: JohnnyCoffee - Sep-18-2022, 08:03 PM - Forum: Networking - Replies (2)

[align=justify]I started a project of a web server that accepts http and https requests for the python language. The idea is to no longer depend on ws..... More

Print this item

  python installation/running inside singularity container
Posted by: erdemath - Sep-18-2022, 05:16 PM - Forum: General Coding Help - Replies (2)

I have singularity-ce version 3.10.2 on ubuntu 20.02. I am trying to install python package. It always says;

[error]
Singularity> apt-get -y updat..... More

Print this item

  Converting python to FileMaker
Posted by: DWolf - Sep-18-2022, 04:45 PM - Forum: General Coding Help - Replies (6)

I need to convert a client's python code for generating a login code to something similar in FileMaker. I didn't think this could be done in FileMaker..... More

Print this item

  Controlling date and time in tests
Posted by: ndc85430 - Sep-18-2022, 03:38 PM - Forum: Tutorial Requests and Submissions - No Replies

Often, the programs we write and systems we build have to do something based on date and/or time. One example could be a library application that comp..... More

Print this item

  Transparent Canvas
Posted by: finndude - Sep-18-2022, 02:59 PM - Forum: GUI - Replies (8)

Hi,

I have this code here:

[python]

from tkinter import *

window=Tk()

window.title("Drawing Shapes on Button Press")

window.attribut..... More

Print this item

  I use VsCode with Python and it currently won't let me run any code
Posted by: NordicMonkey - Sep-18-2022, 02:46 PM - Forum: General Coding Help - Replies (2)

I'm currently starting with Python, I use VsCode; Hadn't had any problems until yesterday.

Basically the problem is that I can execute individual l..... More


Attached Files

Thumbnail(s)
                   
Print this item

  MatplotibTicks every 24 hours
Posted by: TamP - Sep-18-2022, 10:48 AM - Forum: General Coding Help - Replies (4)

My code displays temperatures imported from an excel sheet.
The graph works as I want but I cannot see how to show an xtick every 24 hours rather tha..... More

Print this item

  Reminder that pip runs arbitrary code
Posted by: stevendaprano - Sep-18-2022, 03:45 AM - Forum: News and Discussions - No Replies

This is just a reminder that not only pip install but also pip dryrun will ..... More

Print this item

  Question: print issue
Posted by: python202209 - Sep-17-2022, 06:45 PM - Forum: General Coding Help - Replies (3)

Ask a silly question:

Why I got SyntaxError for print(1,012,000) but not print(1,000,000)?

See attached screenshot.


Attached Files

Thumbnail(s)
   
Print this item

  QWidgetAction of QFrame not showing in menu
Posted by: malonn - Sep-17-2022, 04:34 PM - Forum: GUI - Replies (4)

I am trying to set up a QPushButton with menu that has a horizontal frame in it, but it won't show. The button menu has several labe..... More

Print this item

  Coding Eror
Posted by: Led_Zeppelin - Sep-17-2022, 03:25 PM - Forum: General Coding Help - Replies (3)

The following Python code generates an error:

[code]
q = image_data_org.loc[image_data_org.loc['machine_status']==0]['time_period']
p = image_dat..... More


Attached Files

Thumbnail(s)
   
Print this item

  Merged multiple csv to one
Posted by: SamLiu - Sep-17-2022, 02:19 PM - Forum: General Coding Help - Replies (7)

Hi all,
I try to merge multiple csv to one, but header with all CSVs,how to config only write once,other thing is how to ignore content of snapshot,t..... More

Print this item

  pdf lookalikes
Posted by: DPaul - Sep-17-2022, 07:15 AM - Forum: Bar - No Replies

Hi,
Some service-minded villages have made their 1000s of prayer cards available to the public as pdfs.
Or so it seems, because the thing's extension..... More

Print this item

  MadLib game
Posted by: dgizzly - Sep-16-2022, 08:44 PM - Forum: Homework - Replies (2)

I am in the pursuit of becoming an IT for cyber security and I have this online class that I'm pretty much learning on my own. I am stuck on the part ..... More

Print this item

  What is a circular import? asked by a newbie of newbies
Posted by: ineuw - Sep-16-2022, 07:19 PM - Forum: General Coding Help - Replies (1)

Using Linux Mint Cinnamon 21.0, I want to parse my bookmarks.html file with a script from https://pypi.org/project/bookmarks-parser/.

[python]
#!..... More

Print this item

  random.choices and random.sample
Posted by: azizrasul - Sep-16-2022, 05:50 PM - Forum: General Coding Help - Replies (5)

What is the difference between random.choices and random.sample?

Print this item

  Can't import csv data
Posted by: JonWayn - Sep-16-2022, 10:43 AM - Forum: General Coding Help - Replies (4)

in the code below, page is the webpage response from Playwright for what it's worth:
The csv file gets created ok and looks good as far as I can tell..... More

Print this item

  Memory Error While generating cheksum no
Posted by: mg24 - Sep-16-2022, 12:21 AM - Forum: General Coding Help - Replies (2)

Hi Team,

I am trying to create checksum no , getting error memory error.
for syntax====> lines = f.read()

file size of CSV is 60gb , ho..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Two arguments in input fu... 6 hours ago Alfredd noisefloor General Codin...
  Backward compatibility qu... 9 hours ago yutaozhou buran News and Disc...
  [Tkinter] I’m building a ... Yesterday, 19:29 tsgiannis tsgiannis GUI
  [openpyxl] Set the lockin... Yesterday, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... Yesterday, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... Yesterday, 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... 578677
  Tutorial Requ... 509076
  Web Scraping ... 441835
  Newbie with P... 385787
  New Users Int... 375034
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
Cristiano Today
Alfredd Today
clayote Today
yutaozhou Yesterday
EchoFlowar3Dip Yesterday

User Panel Messages

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