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,928
» Latest member: Williefaree
» Forum threads: 38,719
» Forum posts: 175,493

Full Statistics

Online Users
There are currently 44 online users.
» 1 Member(s) | 36 Guest(s)
Bing, Google, AOL, Internet Archive, AOL, Applebot, Gribouillis

Latest Threads
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: DeaD_EyE
34 minutes ago
» Replies: 6
» Views: 2,514
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:27 PM
» Replies: 6
» Views: 814
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 03:32 PM
» Replies: 2
» Views: 510
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Yesterday, 11:25 AM
» Replies: 7
» Views: 1,803
Python Installation issue
Forum: News and Discussions
Last Post: Dev
Yesterday, 11:16 AM
» Replies: 4
» Views: 15,738
New to the field
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 08:15 AM
» Replies: 1
» Views: 409
Too much space between gr...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:34 AM
» Replies: 1
» Views: 479
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
Sep-13-2025, 06:11 AM
» Replies: 5
» Views: 1,553
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-12-2025, 11:09 AM
» Replies: 2
» Views: 1,234
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Sep-12-2025, 08:36 AM
» Replies: 1
» Views: 2,441

 
  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

  i scored 1/8 on python assessment where did i mess up?
Posted by: SAVAGEMIKE - Jan-15-2024, 11:19 PM - Forum: General Coding Help - Replies (5)

This wasn't assessment given by an instructor in class it was to test for a tech talent development program through a recruiter etc so there's no way ..... More

Print this item

  Stuck with using lists to solve task
Posted by: gery576 - Jan-15-2024, 10:59 AM - Forum: Homework - Replies (9)

Hi everyone,

I am struggling with solving below task which I received as a home assignment in my Python course to practice lists (I've been learning ..... More

Print this item

  [split] Pipenv
Posted by: mohammadasadi4 - Jan-15-2024, 10:35 AM - Forum: General Coding Help - No Replies

Hi everyone
i have a problem and it made me really crazy and i am struggling with it for almost a week searching for solutions in the internet but no..... More

Print this item

  TKinter Remove Button Frame
Posted by: Nu2Python - Jan-15-2024, 06:00 AM - Forum: GUI - Replies (8)

Hi All - How can I remove the button frame in my code? I have tried a few examples I found, but have had no luck. I see one argument example for 'bor..... More


Attached Files

Thumbnail(s)
   
Print this item

  Why doesn't list require global keyword?
Posted by: johnywhy - Jan-15-2024, 12:02 AM - Forum: General Coding Help - Replies (9)

Why doesn't appending to a global list require the global keyword, but modifying a scalar variable does?

[code]numbers = []
dog = 5

def enter..... More

Print this item

  How Write Part of a Binary Array?
Posted by: Assembler - Jan-14-2024, 10:46 PM - Forum: General Coding Help - Replies (1)

Windows 7
Python 3.8.10

I wish to read a binary file, and then write it's data to a different file, skipping the first 16 bytes.
How do I do that..... More

Print this item

  Code test
Posted by: gearmex - Jan-14-2024, 03:47 PM - Forum: Homework - Replies (2)

I just started learning this, i noticed in Finnish language it had lot of things i could not make sense of it, Changed to English and it works better...... More


Attached Files

Thumbnail(s)
   
Print this item

  conversion of newlines in a string
Posted by: Skaperen - Jan-14-2024, 06:20 AM - Forum: News and Discussions - Replies (3)

what is the best function to convert newlines in a string to Unix style whether in Windows style or Mac style (or a mix of both), all in one function ..... More

Print this item

  Python code for alignment and font size
Posted by: 1418 - Jan-14-2024, 03:56 AM - Forum: General Coding Help - No Replies

Hi, I would like help with a code to align left and top and change font size to 10 similar to VBA code. The code I am creating is below, cheers.
[pyt..... More

Print this item

  Python date format changes to date & time
Posted by: 1418 - Jan-14-2024, 03:44 AM - Forum: General Coding Help - Replies (4)

Hi, my original data is short date (15/10/2023) but when I run the below code python changes it to 2023-10-15 00:00:00, how can I prevent this? Cheers..... More

Print this item

  Python code to set column width
Posted by: 1418 - Jan-14-2024, 03:31 AM - Forum: General Coding Help - Replies (11)

Hi, I have tried several codes to set my column widths without success. Is there a simple code similar to VBA I could use?
I would like to add column..... More

Print this item

  File Checksum V2
Posted by: rob101 - Jan-13-2024, 11:21 PM - Forum: Code sharing - No Replies

Announcing version 2 of my 'File Checksum' app, which is a complete rework of the V1 app. As with V1, V2 was developed using the PAGE GUI design appli..... More


Attached Files

Thumbnail(s)
   
Print this item

  List Comprehension Issue
Posted by: johnywhy - Jan-13-2024, 09:59 PM - Forum: General Coding Help - Replies (5)

This works:
[code]choices = 'a', 'b', 'c'
menu = ""

for idx, choice in enumerate(choices):
menu += "\t".join((str(idx), choice, '\n'))

print..... More

Print this item

  Receive Input on Same Line?
Posted by: johnywhy - Jan-13-2024, 09:24 PM - Forum: General Coding Help - Replies (8)

How to receive input on the same line, without clearing the rest of the terminal?

The following prints a new "Enter" line for every bad entry.

..... More

Print this item

  Tab Delimited Strings?
Posted by: johnywhy - Jan-13-2024, 08:47 PM - Forum: General Coding Help - Replies (7)

the following tab-delimits each item

print ("a", "b")
a	b
Is there an equally simple way to build a tab-delimited string, aside from pr..... More

Print this item

  Append inside for?
Posted by: johnywhy - Jan-13-2024, 06:46 PM - Forum: General Coding Help - Replies (10)

This works:

opts1 = []
for idx, choice in enumerate(choices):
	 opts1.append (str(idx))
And this works:

[code]menu = ""
for i..... More

Print this item

  Power Shells vs Compile and Run programs?
Posted by: RockBlok - Jan-13-2024, 05:11 PM - Forum: General Coding Help - Replies (2)

Good morning,

I decided to take a crack at the edx machine learning course, and I had a question about how to approach writing the code.

They se..... More

Print this item

  Regarding pdf for PCEP and PCAP certification
Posted by: P212 - Jan-13-2024, 03:57 PM - Forum: News and Discussions - No Replies

Hi,

I went through this link -https://edube.org/study for PCEP certification exam preparation, but i want this study matarial in a pr..... More

Print this item

  How should I process this data?
Posted by: SuchUmami - Jan-13-2024, 10:55 AM - Forum: General Coding Help - Replies (2)

I don't need coding help but I would really appreciate some ideas about how to tackle this problem.

I have this dataset:

[img]https://i.imgur.co..... More

Print this item

  Text conversion to lowercase is not working
Posted by: ineuw - Jan-13-2024, 10:53 AM - Forum: General Coding Help - Replies (3)

I am trying to change text which contain these capitalized words surrounded by space. But this Autokey script is not working. Can someone point out wh..... More

Print this item

  websocket help
Posted by: johnbob - Jan-13-2024, 06:32 AM - Forum: Networking - Replies (2)

hello every one
i want connect to pocket option broker with its websocket and send and get data for example get OTC market candle data.
when i conn..... More

Print this item

  Passing writable arguments to functions.
Posted by: Assembler - Jan-12-2024, 09:19 PM - Forum: General Coding Help - Replies (11)

Sorry for beating so fundamental a question into the ground, but as a FORTRAN programmer, I feel pain with python functions.

Consider the function ..... More

Print this item

  connect sql by python using txt. file
Posted by: dawid294 - Jan-12-2024, 09:19 AM - Forum: General Coding Help - Replies (2)

Hi python experts i do not know what i do wrong , I would like connect to sql by python using txt.file , Where i do a mistake? or is possible connect ..... More

Print this item

  data validation with specific regular expression
Posted by: shaheen07 - Jan-12-2024, 06:07 AM - Forum: General Coding Help - No Replies

This post is to find a way to check if data matches with specific regular expression

[python]import pandas as pd
# Create first data frame
df1 ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Problem with calculation of market data
Posted by: MrQuant1 - Jan-12-2024, 12:38 AM - Forum: Data Science - No Replies

Hello dear forum, my first post here.

I'm currently stuck and have been working on the same problem for days.

I am currently writing a code that..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Seeking feedback: dynamic... 34 minutes ago Bona2000 DeaD_EyE General Codin...
  Select Python comment (#)... Yesterday, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... Yesterday, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame Yesterday, 11:25 JMcM JMcM Game Developm...
  Python Installation issue Yesterday, 11:16 RFHill Dev News and Disc...
  New to the field Yesterday, 08:15 Polybunny Larz60+ News and Disc...
  [Tkinter] Too much space ... Yesterday, 02:34 RonR deanhystad GUI
  I'm trying to make a piec... 09-13, 06:11 Alislugacool MilesWeb General Codin...
  Python and excel vba codi... 09-12, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... 09-12, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
Most views
  The best Prog... 575663
  Tutorial Requ... 496784
  Web Scraping ... 439711
  Newbie with P... 383360
  New Users Int... 364683
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12087
buran 8174
snippsat 7366
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Williefaree Today
faithsally Today
compuman145 Today
DeadEyes Today
Fobertsmene Yesterday

User Panel Messages

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