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,458
» Latest member: MarkMan
» Forum threads: 38,565
» Forum posts: 174,750

Full Statistics

Online Users
There are currently 506 online users.
» 0 Member(s) | 503 Guest(s)
Bing, Google, Yandex

Latest Threads
Noob programmer - game of...
Forum: Homework
Last Post: russellbeckwith
1 hour ago
» Replies: 4
» Views: 1,394
problems with netcdf if I...
Forum: General Coding Help
Last Post: Larz60+
2 hours ago
» Replies: 5
» Views: 233
Доставка цветов Томск
Forum: General Coding Help
Last Post: HermanIdeop
2 hours ago
» Replies: 0
» Views: 36
How to use isintance with...
Forum: General Coding Help
Last Post: buran
Yesterday, 01:22 PM
» Replies: 3
» Views: 178
Gomoku game problem
Forum: General Coding Help
Last Post: snl_9527
Yesterday, 12:10 AM
» Replies: 6
» Views: 418
500 Internal Server error...
Forum: Web Scraping & Web Development
Last Post: Larz60+
May-07-2025, 05:04 PM
» Replies: 3
» Views: 185
How to put my game loop i...
Forum: Game Development
Last Post: ekaintan1590
May-07-2025, 12:54 PM
» Replies: 8
» Views: 2,068
Text frame
Forum: Homework
Last Post: Larz60+
May-07-2025, 05:47 AM
» Replies: 1
» Views: 131
tkinter only storing last...
Forum: General Coding Help
Last Post: deanhystad
May-06-2025, 11:54 PM
» Replies: 8
» Views: 522
Question regarding Python
Forum: General Coding Help
Last Post: Larz60+
May-06-2025, 07:04 AM
» Replies: 1
» Views: 242

 
  problem with print command in super()
Posted by: akbarza - Jan-29-2024, 07:23 AM - Forum: General Coding Help - Replies (5)

hi
in the below code:
[python]
'''
Python Multiple Inheritance and MRO
super usage() in python
from: https://www.geeksforgeeks.org/python-super/..... More

Print this item

  Behavior of statistics.mean
Posted by: cametan - Jan-29-2024, 06:49 AM - Forum: General Coding Help - Replies (4)

Hello.

Let's make a co-recursive class, or unfoldr somehow popular among functional programming folks, relying on its definition of the Haskell progr..... More

Print this item

  Need Help for homework
Posted by: Treeeeee_0923 - Jan-29-2024, 04:32 AM - Forum: Homework - Replies (2)

[python]import tkinter
import random

colours = ['Red', 'Blue', 'Green', 'Pink', 'Black', 'Yellow', 'Orange', 'White', 'Purple', 'Brown']
color_he..... More

Print this item

  Absolute paths in subprocess - file not found
Posted by: kittyticker - Jan-28-2024, 05:07 PM - Forum: General Coding Help - Replies (4)

I've tried every permutation I can think of to get rid of this message - eg variables, literals, back slashes, forward slashes etc etc (thinking that ..... More

Print this item

  emcee.EnsembleSampler ValueError
Posted by: Dimotrov - Jan-28-2024, 08:53 AM - Forum: Homework - No Replies

Hey, I have a problem with my homework. The goal of the first half is to sample 50 values of r_0,i from a Gaussian distribution with mean mu = 1 and s..... More

Print this item

  Extracting specific file from an archive
Posted by: tester_V - Jan-28-2024, 04:48 AM - Forum: General Coding Help - Replies (4)

Greetings!
I need to extract a specific file from an archive. The archive is a zipped directory with subdirectories and a bunch of other files. I nee..... More

Print this item

  [SOLVED] Pad strings to always get three-digit number?
Posted by: Winfried - Jan-27-2024, 03:46 PM - Forum: General Coding Help - Replies (2)

Hello,

I've tried different things, but still can't strings to always be left-padded, three-digits long even for strings that contain a dash sign:..... More

Print this item

Star Leapcell: The Python-Friendly Alternative to Heroku + Airtable Hybrid
Posted by: IssacChan - Jan-27-2024, 01:47 PM - Forum: Web Scraping & Web Development - Replies (1)

We are excited to announce that Leapcell has officially launched its Beta public testing.

Leapcell: https://leapcell.io/[/u[url=https://python-forum.io/thread-41505.html]..... More

Print this item

  Shortest path from s to t using python
Posted by: nkiki - Jan-27-2024, 09:45 AM - Forum: Homework - Replies (9)

(V, E) be a graph and two vertices s and t. B ⊆ V be some set of vertices. How many vertices of the set B can there be at maximum on a shortest path f..... More

Print this item

  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: 200)
.py   player.py (Size: 9.91 KB / Downloads: 194)
.py   tictac.py (Size: 1.2 KB / Downloads: 182)
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: 180)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Noob programmer - game of... 1 hour ago Dazzalac russellbeckwith Homework
  problems with netcdf if I... 2 hours ago Blaubart Larz60+ General Codin...
  Доставка цветов Томск 2 hours ago HermanIdeop HermanIdeop General Codin...
  How to use isintance with... Yesterday, 13:22 Azdaghost buran General Codin...
  Gomoku game problem Yesterday, 00:10 snl_9527 snl_9527 General Codin...
  500 Internal Server error... 05-07, 17:04 ppowell777 Larz60+ Web Scraping ...
  How to put my game loop i... 05-07, 12:54 temlotresid6 ekaintan1590 Game Developm...
  Text frame 05-07, 05:47 dnabtuh Larz60+ Homework
  tkinter only storing last... 05-06, 23:54 bertschj1 deanhystad General Codin...
  Question regarding Python 05-06, 07:04 LPTtech Larz60+ General Codin...
  Brute Forcing Anagrams 05-05, 16:12 Anorak MeganWillia General Codin...
Most views
  The best Prog... 560563
  Tutorial Requ... 436719
  Web Scraping ... 425772
  Newbie with P... 356929
  Thread remain... 330171
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 325
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12044
buran 8168
snippsat 7324
deanhystad 6818
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
MarkMan Today
dataanalytics007 Today
russellbeckwith Today
AcademicGlobalSchool Today
HermanIdeop Today

User Panel Messages

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