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,582
» Latest member: esoyboy
» Forum threads: 38,635
» Forum posts: 175,035

Full Statistics

Online Users
There are currently 372 online users.
» 1 Member(s) | 367 Guest(s)
Yandex, Bing, Baidu, Google, esoyboy

Latest Threads
A penny doubled every day...
Forum: General Coding Help
Last Post: esoyboy
3 minutes ago
» Replies: 0
» Views: 3
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: snippsat
1 hour ago
» Replies: 11
» Views: 367
Problème d'exécutable
Forum: General Coding Help
Last Post: Zauf
7 hours ago
» Replies: 0
» Views: 68
PRANK YOUR FRIENDS WITH T...
Forum: Code sharing
Last Post: shailesen
Today, 07:55 AM
» Replies: 3
» Views: 3,976
[split] Simple webbot for...
Forum: Code Review
Last Post: Plyth
Today, 04:55 AM
» Replies: 3
» Views: 109
Dynamic Module Import Err...
Forum: General Coding Help
Last Post: Pedroski55
Today, 12:07 AM
» Replies: 3
» Views: 171
What Are the Most Overloo...
Forum: News and Discussions
Last Post: Plyth
Yesterday, 03:37 AM
» Replies: 2
» Views: 133
Setting AST node lineno c...
Forum: General Coding Help
Last Post: deanhystad
Jun-18-2025, 09:15 PM
» Replies: 4
» Views: 253
Wish to write a code for ...
Forum: General Coding Help
Last Post: Hasan2025
Jun-18-2025, 06:40 AM
» Replies: 4
» Views: 1,002
I have a question
Forum: General Coding Help
Last Post: Pedroski55
Jun-18-2025, 04:47 AM
» Replies: 1
» Views: 117

 
  Aspiring systems administrator wants a python book.
Posted by: oslon - May-10-2024, 10:37 AM - Forum: News and Discussions - Replies (1)

I know programming basics like if else for loops and how they work. What I lack is ability to practice. Sort of exercises that I can follow that can t..... More

Print this item

  Trying to generating multiple json files using python script
Posted by: dzgn989 - May-10-2024, 05:27 AM - Forum: General Coding Help - Replies (4)

Hi everyone. This is my first post here.

I am zero in python. I am trying to create script by myself and I thought chatgpt would help but I fail..... More


Attached Files

.zip   FOR FORUMS.zip (Size: 25.85 KB / Downloads: 181)
Print this item

  which way would be better?
Posted by: Skaperen - May-10-2024, 12:26 AM - Forum: General Coding Help - Replies (3)

which way would be better (WWWBB)?

1.[python]
from stat import S_ISREG,S_ISDIR,S_ISLNK,S_ISBLK,S_ISCHR
from stat import S_ISFIFO,S_ISSOCK,S_ISPOR..... More

Print this item

  Adaptive experimental design in python
Posted by: Shilbottle - May-09-2024, 02:03 PM - Forum: Data Science - Replies (1)

Background
I'm looking to implement a discrete choice experiment where participant(s) are presented with pairs of 'product profiles' and asked..... More

Print this item

  Extending list doesn't work as expected
Posted by: mmhmjanssen - May-09-2024, 01:36 PM - Forum: General Coding Help - Replies (2)

Adding a list using the += operator or the extend function gives strange results when used in a class (maybe also outslde a class, I didn't check this..... More

Print this item

  pyinstaller + win32print
Posted by: Wild_Tigra - May-09-2024, 12:50 PM - Forum: General Coding Help - Replies (1)

Hello everyone, I’ll say right away that I’m new to programming, I mainly use GPT chat. The essence of the problem is that there is code in Python, an..... More

Print this item

  What's the meaning of dtype=mesh.Mesh.dtype?
Posted by: FerdiFuchs - May-09-2024, 05:31 AM - Forum: General Coding Help - Replies (2)

Hi there,

I'm trying to create STL files using python code and found the following sample:

[python]from stl import mesh
import math
import num..... More

Print this item

  Use or raw string on regular expressions
Posted by: Zaya_pool - May-09-2024, 04:08 AM - Forum: General Coding Help - Replies (5)

I am studying regular expressions in an introduction course and I don't completely understand the use of raw strings. I will ilustrate my question wit..... More

Print this item

  Value Error when Trying to Plot Filtered Waveforms
Posted by: mkohler - May-09-2024, 12:40 AM - Forum: General Coding Help - Replies (1)

Howdy yall. I am trying to apply a highpass filter to my waveform from a specific earthquake but I cant seem to understand the error that I get when i..... More

Print this item

  Class and Object HW for cars - Help with error handling for user inputs
Posted by: jakeshugart - May-08-2024, 07:55 PM - Forum: Homework - Replies (2)

Hi All,

I have this HW problem that deals with classes and objects and I think i did the assignment correctly from the instructions. However, I w..... More


Attached Files

.pdf   class Car HW problem.pdf (Size: 77.8 KB / Downloads: 213)
.py   car_object_error_handling.py (Size: 1.38 KB / Downloads: 156)
.py   Car.py (Size: 1.19 KB / Downloads: 164)
Print this item

  Please make a script
Posted by: Centsicles - May-08-2024, 04:22 PM - Forum: Bar - Replies (10)

jesus christ,i've looked everywhere,im shadow banned on reddit for whatever reason? Anyway i need to terminate a task called nf.exe that starts itself..... More

Print this item

  Regular expression help
Posted by: anilrajr - May-08-2024, 07:51 AM - Forum: General Coding Help - Replies (4)

Hello All,

Need your help to understand what below python regular expression code does. It's from a Ansible playbook.

[b]- { regex: '((?:hares|h..... More

Print this item

  get a game to run in full screen mode
Posted by: agencyclearly - May-08-2024, 07:22 AM - Forum: Game Development - Replies (1)

Hello, I need some assistance with some coding and I'm attempting to get a game to run in full screen mode. However, it's now small and in the center ..... More

Print this item

  Integrating Python Debugging with Visual Studio Code in a Custom Application
Posted by: bill787 - May-08-2024, 03:59 AM - Forum: Networking - Replies (1)

I’ve integrated Python directly into my application, running it within the same process by loading Python’s relevant libraries. I’m looking to debug P..... More

Print this item

  strange result in xor
Posted by: zapad - May-07-2024, 04:08 PM - Forum: General Coding Help - Replies (6)

hello
i am trying to implement an xor test on 2 values
in binary . I receive in return a strange numeric string instead
of the binary I expect ..... More

Print this item

  Odd Print Behavior
Posted by: tanner_1011 - May-07-2024, 03:12 PM - Forum: General Coding Help - Replies (3)

I'm on Windows 10, running Python 3.12.3. I created a python script in a directory called 'python_alarm_help', and it contains print statements that c..... More

Print this item

  Legacy database
Posted by: DPaul - May-07-2024, 05:58 AM - Forum: Bar - Replies (4)

Hi,
I have been handed a legacy database. It's something called 'filemaker pro',
and I have reason to believe : release 13.
Next to a bunch of dlls..... More

Print this item

  can a number preceed a line of code?
Posted by: Skaperen - May-07-2024, 05:40 AM - Forum: News and Discussions - Replies (4)

is there any case where a line of code that begins with a decimal number expressed as a run of digit characters can be valid Python code in Python3? ..... More

Print this item

  choosing keyword argument names
Posted by: Skaperen - May-06-2024, 11:31 PM - Forum: News and Discussions - Replies (2)

keyword argument names are going to be part of an API a (possible set of) function(s) will have. it would be good to choose a name that has some mean..... More

Print this item

  Error on first Python launch
Posted by: garryp4 - May-06-2024, 09:19 PM - Forum: General Coding Help - Replies (5)

I just installed Python 3.12 and get errors in the in the Command Prompt window when launching.

Here is a cut / paste:

Microsoft Windows [Versio..... More

Print this item

  How can you prevent Qt from displaying scrollbars where none are configured?
Posted by: Batucada - May-06-2024, 01:45 PM - Forum: GUI - Replies (4)

Whenever companies try to re-invent the egg-laying, woolly pig, the result is always something terrible. The company Qt has been a thorn in my side fo..... More

Print this item

  How to generate double arrays by two lists using np.zero
Posted by: Safinazsalem - May-06-2024, 01:21 PM - Forum: Homework - Replies (4)

I have these two lists:

X=np.arange(0,50,0.1)
Y=np.arange(10,20,1)

How to generate a doubles array from these two lists by `np.zeros_like()..... More

Print this item

  How to make a double loop to evaluate this triple integral
Posted by: Safinazsalem - May-06-2024, 10:12 AM - Forum: Data Science - Replies (1)

I have a function f(t1,t2,t3, a,k) where I make a triple integral over t1,t2,t3 and make a loop on the value of the variable "k"

-The integrati..... More

Print this item

Exclamation Multi-Threaded Camera Feed issue
Posted by: Khajababa69 - May-05-2024, 09:41 PM - Forum: General Coding Help - No Replies

I have written a python code, for feeding multiple cameras using opencv and websockets ( not socket io ).

The first segment of the code consists of..... More

Print this item

  Keep getting "SyntaxError: incomplete input" but can't see why.
Posted by: Pedroski55 - May-05-2024, 05:26 PM - Forum: General Coding Help - Replies (3)

I am using Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]

I have this file, compiler2.py shown below, from ..... More

Print this item

Star [HELP] The Application of Deep Neural Networks
Posted by: MistyhV1 - May-05-2024, 02:22 PM - Forum: Data Science - No Replies

Hello everyone,

I'm currently working on a regression model to predict financial asset returns, building upon the research by Welch and Goyal and t..... More


Attached Files

.csv   chars60_summary.csv (Size: 4.44 KB / Downloads: 0)
Print this item

  how to: explicitly select the grouping columns after groupby
Posted by: sawtooth500 - May-05-2024, 03:01 AM - Forum: General Coding Help - No Replies

backtestdf_complete.groupby(['b_index', 'sample_dur']).apply(day_test)
That bit of code is throwing me:

[output]
/Volumes/..... More

Print this item

  Learning process
Posted by: Butiournin1976 - May-04-2024, 07:42 PM - Forum: Bar - Replies (2)

Do you think that casino gaming can be a teacher? Have you ever experienced mistakes or failures in a game that taught you valuable lessons?

Print this item

  Suggestion on how to speed up this code?
Posted by: sawtooth500 - May-04-2024, 05:52 PM - Forum: General Coding Help - Replies (1)

[python]
tester_list = []
def day_test(df_row):
day_start_time = time.time()
tester = completedf[(completedf['date'] == unique_dates[df_ro..... More

Print this item

  Method returning None
Posted by: husksedgier - May-04-2024, 11:12 AM - Forum: General Coding Help - Replies (2)

[python]
class Employee:
no_of_employees = 0
raise_amount = 1.04

def __init__(self, first, last, pay):
self.first = first
..... More

Print this item

  Joblib worker error
Posted by: sawtooth500 - May-03-2024, 05:30 PM - Forum: General Coding Help - Replies (1)

I'm using Joblib for parralelization.

Here is my call to joblib:

[python]backtestdf_list = Parallel(n_jobs = coremax)(delayed(do_backtest)(back..... More

Print this item

  Flask role-based authorization
Posted by: erdemath - May-03-2024, 12:39 PM - Forum: Web Scraping & Web Development - Replies (13)

I am working on a script about role-based authorization by using Flask. I am trying to run by gunicorn on Linux Ubuntu 18.02. However, every time I ca..... More

Print this item

  Calculating Average with Error Handling
Posted by: mikasa - May-03-2024, 08:45 AM - Forum: General Coding Help - Replies (7)

I'm trying to write a Python program to calculate the average of a list of numbers, but I'm getting an error message: "TypeError: unsupported operand ..... More

Print this item

  World Clock syntax error
Posted by: OscarBoots - May-03-2024, 03:37 AM - Forum: General Coding Help - Replies (1)

Hi Forum,
I'm using tis code to create a World clock for 4 Countries.
I've copied the code and understand the logic, but i must have made an error a..... More

Print this item

  questions about storage
Posted by: PhantomMouse - May-02-2024, 09:02 PM - Forum: Game Development - Replies (1)

I'm gearing up to make a CCRPG in Python. The characters will be point bought. The starting points for a level 1 character is 100 points. Each leve..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  A penny doubled every day... 3 minutes ago esoyboy esoyboy General Codin...
  How do select this table ... 1 hour ago MarkMan snippsat Web Scraping ...
  Problème d'exécutable 7 hours ago Zauf Zauf General Codin...
  PRANK YOUR FRIENDS WITH T... Today, 07:55 Spyros_dev shailesen Code sharing
  [split] Simple webbot for... Today, 04:55 AB073 Plyth Code Review
  Dynamic Module Import Err... Today, 00:07 DaddyMAN Pedroski55 General Codin...
  What Are the Most Overloo... Yesterday, 03:37 shreyapatel Plyth News and Disc...
  Setting AST node lineno c... 06-18, 21:15 voidtrance deanhystad General Codin...
  Wish to write a code for ... 06-18, 06:40 Hasan2025 Hasan2025 General Codin...
  I have a question 06-18, 04:47 Clictithe Pedroski55 General Codin...
  How to produce a CPU load... 06-18, 02:19 Calab Plyth General Codin...
Most views
  The best Prog... 572272
  Tutorial Requ... 484757
  Web Scraping ... 436813
  Newbie with P... 379633
  Thread remain... 351219
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12067
buran 8173
snippsat 7339
deanhystad 6838
metulburr 5151
Top referrers
Googlepro 24
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
esoyboy Today
Zauf Today
rupacodingclave Today
Langlais Today
ethan897 Today

User Panel Messages

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