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,399
» Latest member: zanathanlttle647
» Forum threads: 38,826
» Forum posts: 176,029

Full Statistics

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

Latest Threads
Fake Skating Pdf Format
Forum: General Coding Help
Last Post: zanathanlttle647
42 minutes ago
» Replies: 0
» Views: 19
Shield Of Sparrows Pdf
Forum: General Coding Help
Last Post: zasophiatpo5446
46 minutes ago
» Replies: 0
» Views: 14
dtmfgpo,guy678
Forum: General Coding Help
Last Post: GeraldNoive
1 hour ago
» Replies: 0
» Views: 19
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:11 AM
» Replies: 1
» Views: 117
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,601
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 197
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,612
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 167
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 319
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,121

 
  unable to remove all elements from list based on a condition
Posted by: sg_python - Jan-27-2024, 09:06 AM - Forum: General Coding Help - Replies (3)

list=[6.2,5.9,4.8,6.1,6.1,6.5,5.9,5.8,6.2]

for a in list:
    if a<=6.0:
       list.remove(a)
      
print(list)
The outpu..... More

Print this item

  "No gradients provided for any variable" error in Wasserstein GAN
Posted by: Kartik_Tulsian - Jan-27-2024, 06:26 AM - Forum: Data Science - No Replies

I have been working on a GAN model that is designed to output smiles sequences. During my training step I have been getting the error "Value Error: No..... More

Print this item

  Pandas hierarchical sum
Posted by: mariostg - Jan-26-2024, 03:17 PM - Forum: Data Science - Replies (1)

I have a data structure that looks like so
[output]
Cost Elements parent spent
1,1 2184AA None 0
1.1.1 ..... More

Print this item

  Produce One file Per PurchaseOrder
Posted by: jland47 - Jan-25-2024, 03:48 PM - Forum: General Coding Help - Replies (1)

I used a previous 3rd party python code and edited it to fit my new task, trying to understand each part of it and wanted to attempt to edit it on my ..... More

Print this item

  Apache Module
Posted by: jfha73 - Jan-25-2024, 03:42 PM - Forum: Web Scraping & Web Development - Replies (2)

Hey guys,

I currently have Apache running Python via CGI, but has anybody started to work on a module that allows Python to tun web pages? sort of ..... More

Print this item

  [subprocess] Why stdout sent to stderr?
Posted by: Winfried - Jan-25-2024, 02:50 PM - Forum: General Coding Help - Replies (3)

Hello,

Apparently, subprocess is currently the solution du jour to run an ext..... More

Print this item

  Triggering a ps1 script in remote windows server via http python request
Posted by: jasveerjassi - Jan-25-2024, 09:44 AM - Forum: General Coding Help - Replies (1)

I am trying to trigger a ps1 script in remote windows 2016 web server via http get request. This is the code i am trying.

Tried with GET and POST ..... More

Print this item

  Microsoft Teams - Sub-Channel Files Permissions
Posted by: IamJustAmir - Jan-25-2024, 05:08 AM - Forum: Bar - No Replies

Hello, I am new here. Can anyone show me a step-by-step guide on how to restrict users inside this private sub-channel to delete files that they have ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Microsoft Teams Sub-Channel Permissions
Posted by: IamJustAmir - Jan-25-2024, 05:04 AM - Forum: Web Scraping & Web Development - No Replies

Hello, I am new here. Can anyone show me a step-by-step guide on how to restrict users inside this private sub-channel to delete files that they have ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Syntax error for "root = Tk()"
Posted by: dlwaddel - Jan-25-2024, 02:40 AM - Forum: General Coding Help - Replies (15)

I get a syntax error for "root = Tk()" and can't figure it out. I am running Python 3.12 under Windows 11. Here is the code:

[python]>>> from tkint..... More

Print this item

  Open/save file on Android
Posted by: frohr - Jan-24-2024, 06:28 PM - Forum: General Coding Help - No Replies

Hi all, I have app using Kivy and I need open / save csv files. Under Windows/Linux it works well but not under Android. I see folders but no files. T..... More

Print this item

  Subprocess use and modify inputs
Posted by: PierreLCV - Jan-24-2024, 07:53 AM - Forum: General Coding Help - Replies (4)

Dear all,
I started python code in 2024 (a good resolution is not it ?) to use for a job project and i am currently blocked with the subprocess use...... More

Print this item

  minimax help
Posted by: NirmalJ - Jan-24-2024, 07:37 AM - Forum: General Coding Help - Replies (1)

I need help with the issue that the code is returning 1s for all the moves instead of 1s and 0s and -1s for the best or the worst moves. Also it is ma..... More


Attached Files

.py   board.py (Size: 3.55 KB / Downloads: 265)
.py   player.py (Size: 9.91 KB / Downloads: 272)
.py   tictac.py (Size: 1.2 KB / Downloads: 255)
Print this item

  Make entire script run again every 45 mo
Posted by: NDillard - Jan-23-2024, 09:40 PM - Forum: General Coding Help - No Replies

Newbie here with limited python knowledge.
I have a script that is dependent on 3 sensors to output gathered info. The original script is from the P..... More

Print this item

  i want to know the difference
Posted by: Naisuke - Jan-23-2024, 03:05 PM - Forum: General Coding Help - Replies (3)

[python]a=int(input("enter a number:"))
def check_prime_numbers():
for i in range(2, (a//2+1)):
if a%i==0 :
print(f"{a} i..... More

Print this item

  Path Planning
Posted by: prachibhanaria - Jan-23-2024, 10:11 AM - Forum: General Coding Help - No Replies

I am trying to write code in Python for A* and the Firefly algorithm merges code for multiobjective optimization path planning but I am facing an issu..... More


Attached Files

.py   Astar_FA.py_18jan.py (Size: 9.63 KB / Downloads: 255)
Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Fake Skating Pdf Format 42 minutes ago zanathanlttle647 zanathanlttle647 General Codin...
  Shield Of Sparrows Pdf 46 minutes ago zasophiatpo5446 zasophiatpo5446 General Codin...
  dtmfgpo,guy678 1 hour ago GeraldNoive GeraldNoive General Codin...
  Opencv findContours Q Yesterday, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
Most views
  The best Prog... 580440
  Tutorial Requ... 519728
  Web Scraping ... 442789
  Newbie with P... 386995
  New Users Int... 386633
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
zanathanlttle647 Today
zasophiatpo5446 Today
GeraldNoive Today
aellatsz9602 Yesterday
cruisesfares Yesterday

User Panel Messages

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