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,244
» Latest member: thebigback
» Forum threads: 38,779
» Forum posts: 175,812

Full Statistics

Online Users
There are currently 52 online users.
» 3 Member(s) | 45 Guest(s)
Bing, Google, AOL, Google Image, tsgiannis, Larz60+

Latest Threads
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
25 minutes ago
» Replies: 11
» Views: 212
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
35 minutes ago
» Replies: 3
» Views: 71
New to python and coding
Forum: Homework
Last Post: lary_p
51 minutes ago
» Replies: 0
» Views: 8
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
5 hours ago
» Replies: 5
» Views: 210
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 05:37 AM
» Replies: 1
» Views: 79
Data Science
Forum: Data Science
Last Post: mamta25
Yesterday, 05:27 AM
» Replies: 3
» Views: 2,597
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 168
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 163
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 375,675
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,403

 
  problem with spliting line in print
Posted by: akbarza - Jan-23-2024, 08:51 AM - Forum: General Coding Help - Replies (3)

hi
excuse me for this silly question, but i have problem with it. in below code :
[python]"""
shallowcopy and deepcopy
from: https://realpython.c..... More

Print this item

  Unable to understand the meaning of the line of code.
Posted by: jahuja73 - Jan-23-2024, 05:09 AM - Forum: General Coding Help - No Replies

Am unable to understand the meaning of the code on the r.h.s. of the below line of code, as given ..... More

Print this item

  Is possible to run the python command to call python script on linux?
Posted by: cuten222 - Jan-23-2024, 04:10 AM - Forum: General Coding Help - Replies (6)

I have a method to call the python script using subprocess.popen like:

   

it's somehow working well on windows (running with dock..... More

Print this item

  Having trouble setting the X-Ticks for a data set I am working with.
Posted by: Mr_OHagan - Jan-22-2024, 07:11 PM - Forum: Data Science - Replies (1)

I am using a large data set that, it contains homelessness numbers in NYC from 08/21/2013 to 01/16/2024 and when I graph it normally it gives a unread..... More


Attached Files

.csv   DHS_Homeless_Shelter_Census.csv (Size: 123.72 KB / Downloads: 1)
Print this item

  Face recognition system with return hostel form
Posted by: safwan - Jan-22-2024, 03:36 PM - Forum: Homework - Replies (3)

HI I AM NEWBIE ON THIS FORUM! HELP ME.
MY FYP IS overnight return form hostel face recognition system.My hostel usually return home 2 weeks per mont..... More


Attached Files

Thumbnail(s)
   
Print this item

  Basic binary search algorithm - using a while loop
Posted by: Drone4four - Jan-22-2024, 12:50 PM - Forum: General Coding Help - Replies (1)

I’m learning algorithms using Python. My latest challenge laid out by the instructor in my highly sophisticated non-accredited Udemy course content I ..... More

Print this item

  Cant use difflib with islice?
Posted by: gonksoup - Jan-22-2024, 12:05 PM - Forum: General Coding Help - Replies (2)

Sorry to be back so soon.... Any ideas why my code causes Differ to crash? (NB The 3,7 is just an arbitrary number for testing a range). The "for ..... More

Print this item

  Python Constantly Crashing
Posted by: mat189 - Jan-22-2024, 07:18 AM - Forum: General Coding Help - No Replies

Hi,

We have Python installed on a Windows 10 Pro machine and it is constantly crashing all the time. The version is 3.9.9. We use Python to process..... More

Print this item

  pyaudio seems to randomly halt input.
Posted by: elpidiovaldez5 - Jan-22-2024, 04:34 AM - Forum: General Coding Help - Replies (2)

I am trying to use ReSpeaker 4 mic array v2.0. It appears to work perfectly using:

arecord -D plughw:1,0 -f S16_LE -c2 -r16000 test.wav
aplay tes..... More

Print this item

  AttributeError
Posted by: Tori - Jan-22-2024, 03:13 AM - Forum: General Coding Help - Replies (2)

First step, hit up those well-known spots where millions are streaming what gets them off. You know them – hubs and tubes filled with categories so de..... More

Print this item

  Gmpy2 Newbie Working on Precision
Posted by: charlesrkiss - Jan-21-2024, 11:54 PM - Forum: General Coding Help - Replies (10)

I am trying to calculate minute angles, and would like precision of at least 15 digits:

But I fail to understand how Python is rounding.

[b][i]A..... More


Attached Files

Thumbnail(s)
   
Print this item

  Seeking guidance on PyQt Instantiation and correct way to use an instance of QWidget
Posted by: BrewBarred - Jan-21-2024, 10:37 PM - Forum: GUI - Replies (3)

Hey everyone,

I have a few questions (sorry), please see the example code to understand what the questions are referring to. I also recommend runni..... More

Print this item

  Last record in file doesn't write to newline
Posted by: gonksoup - Jan-21-2024, 09:30 PM - Forum: General Coding Help - Replies (3)

Apologies in advance for something that I'm sure you all have encountered before - but I cant find an answer!

The following code happily writes e..... More

Print this item

  json loads throwing error
Posted by: mpsameer - Jan-21-2024, 09:14 AM - Forum: General Coding Help - Replies (8)

Hi All,

I have python code written using netmiko library which does SSH to a switch and run the command "show env power | json". I need to convert ..... More

Print this item

  Retrieve word from string
Posted by: knob - Jan-21-2024, 12:06 AM - Forum: General Coding Help - Replies (4)

Good day !

Based on the example below how could i print the word "fruits" ?
considering that it may change the position in the sentence and
..... More

Print this item

  Draw bounding boxes on live feed
Posted by: Jerome - Jan-20-2024, 10:50 PM - Forum: General Coding Help - No Replies

Working on a robot, using a esp32cam live feed, it's supposed to draw bounding boxes for detected objects with the label name "cup", can't get the box..... More

Print this item

  Question
Posted by: arlindsherifi - Jan-20-2024, 08:26 PM - Forum: General Coding Help - Replies (1)

Hello, I am Arlind Sherifi. I have just started to learn Python and I have written this code:

[python]import numpy as np

perihelion = 70
veloci..... More

Print this item

  Create dual folder on different path/drive based on the date
Posted by: agmoraojr - Jan-20-2024, 06:51 PM - Forum: General Coding Help - Replies (2)

Hello Team,

Below script creates a folder based from a previous date,
My question is,
1. How to declare the if/ else statement that says print(..... More

Print this item

  AttributeError: 'NoneType' re.search
Posted by: philnyland - Jan-20-2024, 02:47 AM - Forum: General Coding Help - Replies (1)

python 3.12.1 Windows 11 command prompt (cmd)
TURN THIS:
this85_e1.txt
the other38_4e.asc
INTO THIS:
this
the other

This was working a fe..... More

Print this item

  Variable for the value element in the index function??
Posted by: Learner1 - Jan-20-2024, 12:16 AM - Forum: General Coding Help - Replies (8)

Let's say that I have a list with all the letters of the English alphabet in it.

Is it possible to allow a user to input an alpha character,

the..... More

Print this item

  Best way to secure API key when sharing
Posted by: quarinteen - Jan-19-2024, 04:25 PM - Forum: General Coding Help - Replies (2)

Hello I have a script that has an api key in it in plain text. This has been okay because only myself and 1 other person uses it. I have been asked to..... More

Print this item

  run SQL without user intervention python
Posted by: dawid294 - Jan-19-2024, 01:11 PM - Forum: General Coding Help - No Replies

Hello, Is possible connect SQL from python without using password and username in the script. But the script should run without user intervention. Exi..... More

Print this item

  PyImport_ImportModule
Posted by: milonass - Jan-19-2024, 11:32 AM - Forum: General Coding Help - Replies (2)

This C++-code is not able to import numy:

[python]#include <iostream>
#include <filesystem>
//#include "C:\Program Files\Python311\include\Python..... More

Print this item

Photo SYNTAX ERROR
Posted by: Yannko - Jan-19-2024, 11:03 AM - Forum: General Coding Help - Replies (3)

Hi, guys, do you have any ideas why "syntax error" occurs when trying to run this trivial piece of code? Thanks!


Attached Files

Thumbnail(s)
   
Print this item

  Creating a Browser Extension using Python
Posted by: j49857 - Jan-19-2024, 03:19 AM - Forum: Web Scraping & Web Development - Replies (3)

I am trying to create a Browser Extension that uses Python and have been unable to make my script work as an extension in any way.
I believe I need ..... More

Print this item

  strange behavior of chess library in Python
Posted by: max22 - Jan-18-2024, 05:02 PM - Forum: General Coding Help - Replies (1)

I have a rather simple chess endgame Python code implementinng negamax strategy given below but it behaves strange.
Negamax means that when both p..... More

Print this item

  KivyMD android app - problem with permission
Posted by: polak7gt - Jan-18-2024, 01:27 PM - Forum: General Coding Help - No Replies

I created a simple app for viewing my weekly meal plan. It reads the SQLite database. The app worked on my old smartphone; however, it does not work o..... More

Print this item

  all of attributes and methods related to a special type
Posted by: akbarza - Jan-18-2024, 06:48 AM - Forum: General Coding Help - Replies (4)

hi
how can I see all attributes and methods related to a special type? for example, I want to see all methods and attributes related to lists,..... More

Print this item

  Int.From_Bytes Method - Conversion of Non-Escaped Bytes Objects
Posted by: new_coder_231013 - Jan-17-2024, 08:54 PM - Forum: General Coding Help - Replies (2)

Hello,

Sorry in advance for the likely basic nature of this question. I'm wondering how the "int.from_bytes" method returns the output that it does..... More

Print this item

  Basic syntax
Posted by: zenkalidas - Jan-17-2024, 07:40 PM - Forum: General Coding Help - Replies (2)

sorry if this seems too basic . What is wrong with the following statement : ..... More

Print this item

  cmath.rect accepts a negative modulus
Posted by: JMB - Jan-17-2024, 07:14 PM - Forum: General Coding Help - Replies (2)

The function cmath.rect(r, phi) accepts negative values for r. For example: cmath.rect(-1, 0) returns (-1-0j).

The returned value is according to w..... More

Print this item

  loop through csv format from weburl in python
Posted by: maddyad82 - Jan-17-2024, 04:23 PM - Forum: General Coding Help - Replies (3)

what I need to do is , extract hostnames from the weburl which is in csx format , loop through it , extract the first column starting with xyz, assign..... More

Print this item

  Precision with Decimal Type
Posted by: charlesrkiss - Jan-16-2024, 06:03 PM - Forum: General Coding Help - Replies (10)

I'm having some problems with getting the desired precision, and something like this also happens.

>>> G=Decimal(0.99999999999999999999990000000000..... More


Attached Files

Thumbnail(s)
   
Print this item

  python script is hanging while calling a procedure in database
Posted by: prasanthi417 - Jan-16-2024, 10:42 AM - Forum: General Coding Help - Replies (4)

Need help in how to maintain database connection alive

My python script is connecting to Oracle DB and is calling a stored procedure( this procedu..... More

Print this item

  SendKeys not working
Posted by: SanjayGMusafir - Jan-16-2024, 10:11 AM - Forum: General Coding Help - Replies (4)

Hi Experts

I'm using a code that I downloaded from internet.

It is working fine until the message is composed but for some reason it does not se..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] I’m building a ... 25 minutes ago tsgiannis tsgiannis GUI
  Help with Serial.write in... 35 minutes ago racingsubby Larz60+ General Codin...
  New to python and coding 51 minutes ago lary_p lary_p Homework
  Backward compatibility qu... 5 hours ago yutaozhou Gribouillis News and Disc...
  [split] print two differe... Yesterday, 05:37 Reema Gribouillis General Codin...
  Data Science Yesterday, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
Most views
  The best Prog... 578781
  Tutorial Requ... 509624
  Web Scraping ... 441891
  Newbie with P... 385878
  New Users Int... 375675
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+ 12104
buran 8195
snippsat 7388
deanhystad 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
thebigback Yesterday
dimitriwati Yesterday
johnsonlucas83 Yesterday
ColorTig Yesterday
AcoolPurpleOne1863 Yesterday

User Panel Messages

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