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,388
» Latest member: DTECHSYSTEM
» Forum threads: 38,820
» Forum posts: 176,017

Full Statistics

Online Users
There are currently 38 online users.
» 1 Member(s) | 34 Guest(s)
Google, Bing, AOL

Latest Threads
Calling python from anoth...
Forum: General Coding Help
Last Post: Gribouillis
2 hours ago
» Replies: 8
» Views: 189
IP address for users
Forum: Networking
Last Post: itx_sumeet
9 hours ago
» Replies: 4
» Views: 7,057
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Today, 01:10 AM
» Replies: 5
» Views: 9,879
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 130
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 73
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 132
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,290
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 97
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 752
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 165

 
  Os.system("shutdown"); command not found
Posted by: cosmin1805 - Nov-12-2022, 11:43 AM - Forum: General Coding Help - Replies (4)

Hi, I am trying to shutdown my Linux mint computer via a python script, but I get a command not found error.
[python]os.system("shutdown now")[/pytho..... More

Print this item

  math (stats) question
Posted by: DPaul - Nov-12-2022, 08:12 AM - Forum: Bar - Replies (2)

Hi,
We processed our first batch of 25.000 prayer cards. Awesome!
But: the quality of the result depends on a lot of factors,
probably the most impor..... More

Print this item

  help me simple code result min and max number
Posted by: abrahimusmaximus - Nov-12-2022, 04:45 AM - Forum: General Coding Help - Replies (2)

I have the following code:

[python]
largest = None
smallest = None
while True:
num = input('enter a num ')
if num == "done":
..... More


Attached Files

Thumbnail(s)
   
Print this item

  Failing to print sorted files
Posted by: tester_V - Nov-12-2022, 04:05 AM - Forum: General Coding Help - Replies (4)

Greetings!
I'm trying to sort files in a directory by the timestamp.
I got this snipped from the internet and if I specify the directory the snipped..... More

Print this item

  How to conditionally execute correctly?
Posted by: lolita7777 - Nov-12-2022, 03:15 AM - Forum: General Coding Help - Replies (5)

[python]@bot.message_handler(commands=['start'])
def get_filial(message: types.Message):

markup_inline_filial=types.InlineKeyboardMarkup()
..... More

Print this item

  python raw string help
Posted by: mg24 - Nov-12-2022, 01:45 AM - Forum: General Coding Help - Replies (1)

Hi Team,

Can we use r as raw string for variable folder_path.
because user is passing folderpath via command line.



Path(r'E:\data\transport..... More

Print this item

  Many iterations for loop question
Posted by: adesimone - Nov-12-2022, 12:49 AM - Forum: Homework - Replies (9)

Hi all,

I am trying to write a for loop that will iterate through 10 items in the Twaterout list, subtract those from the first item in Tairout, an..... More


Attached Files

.py   pythonforum.py (Size: 4.35 KB / Downloads: 350)
Print this item

  python get filename
Posted by: mg24 - Nov-11-2022, 10:36 PM - Forum: General Coding Help - Replies (2)

Hi Team,

I want to extract filename without extension. I know below methods
any other way of getting same output.
expected abc

[python]
fname..... More

Print this item

  python difference between sys.exit and exit()
Posted by: mg24 - Nov-11-2022, 09:38 PM - Forum: General Coding Help - Replies (1)

Hi Team,

In my project I used try except block ,
if exception occured I used sys.exit()

I saw exit() in someones code ,

[python]
when to ..... More

Print this item

  python manage variables across project level
Posted by: mg24 - Nov-11-2022, 09:20 PM - Forum: General Coding Help - Replies (1)

Hi Team,

how to manage variables which can be used in project level, instead of passing all variables from main def

In my project I am using to..... More

Print this item

  Visual Studio Code venv ibm_db error
Posted by: mesi1000 - Nov-11-2022, 08:14 PM - Forum: General Coding Help - Replies (7)

Visual Studio Code venv does not allow to pip install ibm_db ( Python 3.7.9)
whereas PyCharm venv allows and then work properlly for the same Python ..... More

Print this item

  How to output one value per request of the CSV and print it in another func?
Posted by: Student44 - Nov-11-2022, 03:33 PM - Forum: General Coding Help - Replies (3)

Can You please tell me how to do. The first function needs to read USERNAME column from csv file to output one value per request and the second functi..... More

Print this item

Question Simulate an answer based on user input [Beginner needs guidance]
Posted by: Bombardini - Nov-11-2022, 03:24 PM - Forum: Homework - Replies (1)

I'm a complete beginner looking for advice/guidance. Basically I want to build a program that simulates a suggestion based on existing probabilities a..... More

Print this item

  [Solved] unkown (to me) function def parm "name1:name2" syntax.
Posted by: MvGulik - Nov-11-2022, 09:49 AM - Forum: General Coding Help - Replies (5)

I came across a function definition (inside a class) which has a "name1: name2" part.
[python]def func(self, name1: name2):[/p..... More

Print this item

  how to silence this warning?
Posted by: Skaperen - Nov-11-2022, 05:24 AM - Forum: News and Discussions - Replies (7)

how to silence this warning?
[output]
lt1a/forums/2 /home/forums 5> box foo.py
+----<foo.py>---------------------+
| def foox(v): ..... More

Print this item

  code in a string?
Posted by: Skaperen - Nov-11-2022, 01:29 AM - Forum: News and Discussions - Replies (2)

has a way been worked out to have a block of source code be assigned to a string while also compiling the code as if that code was there without being..... More

Print this item

  [split] assignment help
Posted by: Shobana - Nov-11-2022, 01:24 AM - Forum: Homework - Replies (2)

Greetings from Shobana

Professionally I'm an "Admin cum HR" in a consulting company. I am new to IT world, and started my Data Science course. I h..... More


Attached Files

Thumbnail(s)
       
Print this item

  compiling with an undefined variable
Posted by: Skaperen - Nov-10-2022, 11:59 PM - Forum: News and Discussions - No Replies

while reviewing an old function/module i coded a few years ago, i realized that variable socket.AF_INET6 would not be defined..... More

Print this item

  Get User Mac Address ?
Posted by: JohnnyCoffee - Nov-10-2022, 07:04 PM - Forum: Networking - Replies (4)

I'm using the uuid module to try to capture the source mac address ( cleinte ). Using the code below locally I can get the source mac address (local d..... More

Print this item

  Webhook, post_data, GPIO partial changes
Posted by: DigitalID - Nov-10-2022, 04:38 PM - Forum: General Coding Help - Replies (2)

Okay,

I am a project oriented integrator, so I don't code on a regular basis, and I switch a lot between Arduino and Raspberry Pi, based on what th..... More

Print this item

  A combinations instance with random access
Posted by: Gribouillis - Nov-10-2022, 03:02 PM - Forum: Code sharing - No Replies

Instances of this class Combinations are slow replacements for itertools.combinations() if they are iterated. On the..... More

Print this item

  Plotting periodic function with fft
Posted by: schniefen - Nov-10-2022, 11:53 AM - Forum: Homework - No Replies

I want to plot a T-periodic function using a restricted set of Fourier coefficients. The function equals sin(x/tau) for 0<=x<(2*pi*tau) and 0 for (2*p..... More

Print this item

  pyinstaller false positives
Posted by: DPaul - Nov-10-2022, 09:37 AM - Forum: General Coding Help - Replies (2)

An executable produced by pyinstaller is automatically removed by my Norton antivirus.
I know this has been adressed by Buran (some time ago) and mult..... More

Print this item

  MultiThreading
Posted by: DPaul - Nov-10-2022, 06:55 AM - Forum: Bar - Replies (1)

Hi,
Not a showstopper or a bug, just a nice to have:
I basically use the multithreading code, proposed by Wavic:

[python]images = pathlib.Path('path_..... More

Print this item

  How to approach pyusb application arch
Posted by: m3atwad151 - Nov-10-2022, 06:11 AM - Forum: News and Discussions - No Replies

Hello,

I have a question relating to python and USB functionality. Right now I have an embedded product with a USB 2.0 full speed HID interface. ..... More

Print this item

  Using Python for communications
Posted by: PreservedKillich - Nov-10-2022, 05:31 AM - Forum: News and Discussions - Replies (4)

Greetings,

I need to setup communications between a computer running Windows and and the UART of a TI TMS320F28388D microcontroller running C/FreeR..... More

Print this item

  Get session id from users ?
Posted by: JohnnyCoffee - Nov-10-2022, 12:53 AM - Forum: News and Discussions - No Replies

I'm developing a distributed software (in python) that I intend to run on the web (browser) and I came across a question about session id? For this, I..... More

Print this item

  Error on basic Post API, FastAPI
Posted by: marlonbown - Nov-09-2022, 11:42 PM - Forum: General Coding Help - Replies (1)

Hello, I am writing a POST API.
My intention is to retrieve an IP address and save into a database.

When I go to Postman and I hit the API endpo..... More

Print this item

  Choosing Python web host?
Posted by: Crododo - Nov-09-2022, 07:37 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

Can python web pages be hosted on any hosting servers like Hostinger, bluehost… do I need to look for anything specific or it will work on ever..... More

Print this item

Question Help with function - encryption - messages - NameError: name 'message' is not defined
Posted by: MrKnd94 - Nov-09-2022, 05:28 PM - Forum: General Coding Help - Replies (4)

Hello!

I'm trying to encrypt messages using the Caesar Cipher. I've made a function for it. This is the code for it:

[python]def encrypt(message..... More

Print this item

  multiprocessing phash from every frame in folder
Posted by: flash77 - Nov-09-2022, 01:39 PM - Forum: General Coding Help - Replies (17)

Hello,

with great support from this forum I'm working on a tool which can detect hangers in a Super8-Film.

I need some support in using multipro..... More

Print this item

  create my exception to my function
Posted by: korenron - Nov-09-2022, 12:52 PM - Forum: General Coding Help - Replies (2)

Hello,
I have a function that read data after a I split the message , and sometime I get wrong message-- which lead to wrong data input
I want to ..... More

Print this item

  Understanding Python classes
Posted by: PythonNewbee - Nov-09-2022, 10:17 AM - Forum: General Coding Help - Replies (3)

Hi People

Please help me understand Python classes a bit better.
This code does not do what I want it to do, which is changing the value of class ..... More

Print this item

  Where can I get loooads of simple homework questions for kids?
Posted by: omar - Nov-09-2022, 10:09 AM - Forum: Homework - Replies (3)

My son is learning Python at college.
He has trouble understanding verbal questions - very simple basic ones.

I've spent hours and hours with him...... More

Print this item

  Getting error when running "MINUS" between 2 databases
Posted by: marlonbown - Nov-09-2022, 04:36 AM - Forum: General Coding Help - Replies (4)

Goal: Keep content of TableA except items listed on TableB.

I am getting the following error. Code is below. Can you please let me know if you see ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Calling python from anoth... 2 hours ago eedjsa Gribouillis General Codin...
  IP address for users 9 hours ago Robots itx_sumeet Networking
  Lottery generator (beginn... Today, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
Most views
  The best Prog... 580343
  Tutorial Requ... 518932
  Web Scraping ... 442764
  Newbie with P... 386945
  New Users Int... 386118
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
DTECHSYSTEM Today
zashleyfracesz3221 Today
itx_sumeet Today
zaathonyshulze4201 Today
Michaelhauct Yesterday

User Panel Messages

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