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,251
» Latest member: ftk456
» Forum threads: 38,781
» Forum posts: 175,825

Full Statistics

Online Users
There are currently 66 online users.
» 2 Member(s) | 56 Guest(s)
Google, Bing, AOL, Mojeek, Facebook, Axel_Erfurt, paul18fr

Latest Threads
re.split issue
Forum: General Coding Help
Last Post: paul18fr
45 minutes ago
» Replies: 0
» Views: 15
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
1 hour ago
» Replies: 6
» Views: 323
New to python and coding
Forum: Homework
Last Post: lary_p
5 hours ago
» Replies: 5
» Views: 145
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 07:26 PM
» Replies: 2
» Views: 93
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 227
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 352
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 136
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,636
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 232
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 225

 
  Functions: why use a variable "display" in a UDF as a Boolean
Posted by: MMartin71 - May-25-2025, 04:05 PM - Forum: General Coding Help - Replies (3)

Hello,
Can someone explain why the following code includes the "display" variable in the function?

[python]def full_name(first, middle, last, di..... More

Print this item

  Unequal values when added with 0?
Posted by: Azdaghost - May-23-2025, 09:41 PM - Forum: General Coding Help - Replies (1)

Hello! I'm trying to make a rainbow cube and realized this
why does this output 0...

print(6%6)
but this outputs 6?
[python]print..... More

Print this item

  backtesting can't optimize
Posted by: Running_Code - May-23-2025, 03:19 PM - Forum: General Coding Help - Replies (1)

[python]from backtesting import Strategy, Backtest
import yfinance as yf
import pandas as pd
import numpy as np
import pandas_ta as ta

# === Do..... More

Print this item

Question Call CLI app with input?
Posted by: Winfried - May-23-2025, 11:27 AM - Forum: General Coding Help - Replies (5)

Hello,

Does someone know how to call a CLI application in Windows with an input field?

As show, I tried calling it with a full string, an array,..... More

Print this item

  Languages
Posted by: Azdaghost - May-22-2025, 12:15 PM - Forum: General Coding Help - Replies (2)

Hello Python Community! I have a question:
Can you code in another language?

Example:

распечатать("привет")

Print this item

  Python automation: Sending clicks/keys to VMware virtual machine from host
Posted by: olips784 - May-18-2025, 06:28 PM - Forum: General Coding Help - No Replies

Hello,
I have a Windows 10 host machine running VMware Workstation with a virtual machine (VM) inside it. I run a game inside the VMware VM, and I wa..... More

Print this item

Question Import vs from x import
Posted by: Calab - May-15-2025, 01:58 PM - Forum: General Coding Help - Replies (1)

I'm trying to figure out why you would create a containing class if you were just going to import it from a file, vs just creating the g..... More

Print this item

  tracking version during run
Posted by: Skaperen - May-15-2025, 12:25 AM - Forum: News and Discussions - Replies (2)

suppose there is a Python script that intends to be run if the host has a version at or above a specific version X.Y. suppose the host also has an ol..... More

Print this item

  class Blockage not projecting
Posted by: Azdaghost - May-14-2025, 01:09 PM - Forum: General Coding Help - Replies (1)

Hello! I am making a module similar to pygame, and I have a problem.
whenever I type in this:

[python]blockage = display.Blockage(10, 10, 50, 50,..... More

Print this item

  Return a string or byte object from Enum class?
Posted by: Calab - May-13-2025, 03:57 PM - Forum: General Coding Help - Replies (5)

I wish to have a class that simply contains some values. I want to avoid using the .value attribute. In other words I want to use "class.my_enum" to g..... More

Print this item

  Library Management System
Posted by: annajoy - May-13-2025, 12:59 AM - Forum: Homework - Replies (1)

Hi everyone,

I'm working on a P..... More

Print this item

Question Why are the PythonT symlinks created by default (macOS)
Posted by: gernophil - May-12-2025, 08:10 AM - Forum: News and Discussions - No Replies

Hey everyone,
I just installed Python3.13 from python.org and I was wondering about all the PythonT symlinks in /usr/local/bin:

`python3.13t->....... More

Print this item

  Pip help
Posted by: meditek - May-11-2025, 06:14 PM - Forum: General Coding Help - Replies (4)

I was told by the author of a github showing to run this command after installig Python :-

pip install opencv-python numpy python3_xlib pyautogui ..... More

Print this item

  smbus.SMBus i2c code which worked to v.3.7.3 does not on Python 3.11.2
Posted by: NewbyTyro - May-11-2025, 11:41 AM - Forum: General Coding Help - Replies (2)

The code below has worked on a set of Raspberry Pi 2B single board computers in my workshop for some years now, each of them using a local real time c..... More

Print this item

  Tkinter: Problem with storing data from one window to the other
Posted by: iforire - May-11-2025, 08:44 AM - Forum: General Coding Help - Replies (1)

Dear all,

I am very new to Python and Tkinter, so sorry if the question is very basic.
I cannot manage to store the value of a parameter, here "va..... More

Print this item

  where variable arguments is documented
Posted by: Skaperen - May-11-2025, 01:51 AM - Forum: News and Discussions - Replies (1)

i am looking for official documentation in the references for how arguments are provided to functions that are to get a variable number of arguments, ..... More

Print this item

  [Python] Issue of Adding Single and Bulk Vouchers to UserMan
Posted by: Aymen - May-10-2025, 06:39 PM - Forum: General Coding Help - No Replies

Hi , i have the following code to add bulk of voucher (users) to Mikrotik UserMan Radius , it's working ok but when i add vouchers , Mikrotik CPU util..... More

Print this item

  Review of a ping tool made with PyQt6
Posted by: suburbanprojects - May-10-2025, 08:51 AM - Forum: Code Review - Replies (2)

I made a basic ping tool with PyQt6, so just wondering if further improvements could be made. One thing I did notice was a moment will pass before it ..... More

Print this item

  Monitor Computer Internal Clock
Posted by: EdMcCauley - May-09-2025, 02:32 PM - Forum: General Coding Help - Replies (3)

I'm working on my first Python program. I need to set up an internal timer so that an equation will be solved to produce updated data at 1 second inte..... More

Print this item

  total Noob question: Why is the code not executed
Posted by: MarkMan - May-09-2025, 10:23 AM - Forum: General Coding Help - Replies (5)

I am a total noob at learning python (day 6) and i gave myself a homework.

The program is a game where the user has to guess a number between 1-100..... More

Print this item

  How to use isintance with condition?
Posted by: Azdaghost - May-07-2025, 11:21 PM - Forum: General Coding Help - Replies (3)

Hello! I am trying to make my own language and I came across a problem.

I want it to check the type of data the user inputted, but the thing is tha..... More

Print this item

  problems with netcdf if I compile Android
Posted by: Blaubart - May-07-2025, 06:22 PM - Forum: General Coding Help - Replies (16)

Hi,

I try to compile this repository for Android:
https://github.com/OpenSoaring/OpenSoar

I get this error:
root@Werkstatt:/home/dirk/openvari..... More

Print this item

  500 Internal Server error trying to run external Python script via HTML
Posted by: ppowell777 - May-07-2025, 12:14 AM - Forum: Web Scraping & Web Development - Replies (3)

I am running a very simple HTML script on IIS 10.0 using Brython to communicate with a Python script.

HTML:

[code=html]
<html>
<!-- Based on h..... More

Print this item

  Text frame
Posted by: dnabtuh - May-06-2025, 10:24 PM - Forum: Homework - Replies (2)

Python and AutoCAD

Hi All

Anyone has a code or and idea how to draw in AutoCAD tight (offset = 0 ?) frame around text using python coding? I nee..... More


Attached Files

Thumbnail(s)
   
Print this item

  Gomoku game problem
Posted by: snl_9527 - May-06-2025, 03:07 AM - Forum: General Coding Help - Replies (6)

[python]
import pygame
pygame.init()

#game constants
WINDOW_SZ = 720
BOARD_SZ = 16
COLOR = [(255,255,255),(0,0,0)]
LINE_COLOR = (0,0,0)
BOAR..... More


Attached Files

.zip   gomokuame.zip (Size: 33.15 KB / Downloads: 124)
Print this item

  Question regarding Python
Posted by: LPTtech - May-05-2025, 02:43 PM - Forum: General Coding Help - Replies (2)

Hi everyone,

I'm working on a project that requires both data acquisition and equipment control. One of the key components I need to interface with..... More

Print this item

  How to space data on x axis
Posted by: m_kdch - May-05-2025, 12:55 PM - Forum: General Coding Help - Replies (2)

Hi everyone!

I'm trying to represent some data with matplotlib. For this particular set, I need to compare only two data, each composed of a mean +..... More


Attached Files

Thumbnail(s)
   
Print this item

  Retired and Learning Python
Posted by: breacsealgaire - May-04-2025, 04:26 AM - Forum: Code sharing - Replies (3)

After 50 years of software development from IBM 360 mainframes to Azure cloud I've decided to keep active at home and decided Python looked interestin..... More

Print this item

  tkinter only storing last element/data from entry widget
Posted by: bertschj1 - May-03-2025, 11:49 PM - Forum: General Coding Help - Replies (8)

Hello. I'm new here, and in desperate need of help! I don't have much experience with tkinter, so I may have botched something along the way. Here's m..... More

Print this item

Question [SOLVED] [Windows] Change directory date?
Posted by: Winfried - May-03-2025, 04:32 PM - Forum: General Coding Help - Replies (2)

Hello,

I mistyped a "dir" command in Windows, and now all the subdirectories have the (wrong) same date :-/

As a way to get a more realistic dat..... More


Attached Files

Thumbnail(s)
   
Print this item

  need help with fixing data vulnarabilities
Posted by: anaconda99 - May-03-2025, 04:19 PM - Forum: General Coding Help - Replies (1)

at the office some of our python was recently scanned for vulnarabilities.
the scan report identified some python code that had injection issues.
I ..... More

Print this item

  Grok Acedemy Sport Microbit Tilt Both Ways Help
Posted by: happyhippo - May-03-2025, 02:15 AM - Forum: Homework - Replies (1)

Hello, im currently doing the grok academy sport microbit course and im up to ‘Tilt Both ways’ an activity in module 5. I have cleared most of the tes..... More

Print this item

Star Build Fast, Type-Safe APIs with Django Ninja – Full Guide + CRUD Example
Posted by: Mido - May-02-2025, 06:51 PM - Forum: Tutorial Requests and Submissions - No Replies

If you're working with Django and want to build fast, clean, and modern APIs, Django Ninja is a powerful tool worth exploring. It brings FastAP..... More

Print this item

  How to understand object-oriented programming?
Posted by: snl_9527 - May-01-2025, 02:45 PM - Forum: General Coding Help - Replies (3)

As a beginner just starting to learn Python, I'm quite confused by object-oriented programming. I don't know how to understand this concept, and it do..... More

Print this item

Information [SOLVED] [Beautiful Soup] How to deprettify?
Posted by: Winfried - May-01-2025, 08:30 AM - Forum: General Coding Help - Replies (3)

Hello,

I made the mistake of using soup.prettify() to save soups to files, and I now have whitespaces that show up as useless spaces when viewing t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  re.split issue 45 minutes ago paul18fr paul18fr General Codin...
  Backward compatibility qu... 1 hour ago yutaozhou noisefloor News and Disc...
  New to python and coding 5 hours ago lary_p lary_p Homework
  why is the image not show... Yesterday, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 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
Most views
  The best Prog... 578910
  Tutorial Requ... 510118
  Web Scraping ... 441937
  Newbie with P... 385952
  New Users Int... 376696
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+ 12107
buran 8195
snippsat 7388
deanhystad 6908
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ftk456 Yesterday
sarbogast Yesterday
bmurray Yesterday
kai_cow2710 Yesterday
Kacper 11-11

User Panel Messages

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