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,248
» Latest member: kai_cow2710
» Forum threads: 38,779
» Forum posts: 175,819

Full Statistics

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

Latest Threads
New to python and coding
Forum: Homework
Last Post: jefsummers
28 minutes ago
» Replies: 4
» Views: 98
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
2 hours ago
» Replies: 6
» Views: 163
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Yesterday, 09:52 AM
» Replies: 11
» Views: 300
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Yesterday, 05:07 AM
» Replies: 5
» Views: 271
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 101
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,619
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 201
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 185
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,172
Best book on learning Pyt...
Forum: News and Discussions
Last Post: mamta25
Nov-07-2025, 06:07 AM
» Replies: 2
» Views: 3,421

 
  Python script to extract data from API to database
Posted by: melpys - Aug-12-2024, 05:53 PM - Forum: General Coding Help - No Replies

I'm making a Python script to extract data from some APIs, such as TCGA API, in order to extract it and import it into my SQL database, which tracks t..... More

Print this item

  better python text editor
Posted by: kucingkembar - Aug-12-2024, 03:51 PM - Forum: News and Discussions - Replies (12)

sorry if I put in the wrong section or my bad English,
currently, I using the Default IDLE Python text editor,
and because it is very basic, I foun..... More

Print this item

  (Fix it) Extend list with multiple other ones
Posted by: andreimotin - Aug-12-2024, 09:55 AM - Forum: General Coding Help - Replies (3)

We need to be able to automatically extend our list with multiple other ones, here's an example:
How it works now:
[python]sales_w1 = [7,3,42,19,15,..... More

Print this item

  FileNotFoundError: [Errno 2] No such file or directory although the file exists
Posted by: Arnibandyo - Aug-12-2024, 09:07 AM - Forum: General Coding Help - No Replies

I am defining a logger and periodically exporting the content to a blob. I’ve been using this for some time with DBR 10.4/python 3.8 without any issue..... More

Print this item

  Continue Function for Loops in Python
Posted by: Hudjefa - Aug-12-2024, 06:36 AM - Forum: General Coding Help - Replies (5)

At the very early stages of learning Python. Currently learning Python loop functions and what they can do. I'm a bit confused about the [i]continue[/..... More

Print this item

  Number Guessing Game
Posted by: elenagilbert - Aug-12-2024, 03:56 AM - Forum: Homework - Replies (6)

Here is my homework:
Write a Python program that simulates a number guessing game. The computer will randomly generate a number between 1 and 100. Th..... More

Print this item

  Problem with List Comprehension in Python
Posted by: laurawoods - Aug-12-2024, 03:49 AM - Forum: General Coding Help - Replies (3)

Hi everyone,
I’m working on a Python project where I need to filter and transform a list of numbers. I want to create a new list that contains the sq..... More

Print this item

  Trying to map various products to their respective categories
Posted by: hanisha393 - Aug-12-2024, 01:03 AM - Forum: Data Science - Replies (2)

I’m trying to build my own e-commerce site and trying to map various products to their respective categories.
I implemented a ML model using tensorfl..... More

Print this item

  Pygame and buttons play
Posted by: menator01 - Aug-11-2024, 11:15 PM - Forum: Code sharing - No Replies

Just playing around with making buttons in pygame and thought I would share

btn_class.py
[python]
import pygame

# Inialize pygame font
pygame..... More

Print this item

  pygame help
Posted by: aArtur - Aug-11-2024, 09:01 PM - Forum: General Coding Help - Replies (2)

i'm trying to dipslay player's health in the window but it doesn't appear

[python]
import os
import random
import math
import pygame
import s..... More

Print this item

  get nltk data
Posted by: Pedroski55 - Aug-11-2024, 07:00 AM - Forum: General Coding Help - Replies (7)

According to the instructions, getting nltk data packets is easy:

import nltk
nltk.download('punkt_tab')
But I get:
[output]..... More

Print this item

  Unique Tkinter Window
Posted by: kucingkembar - Aug-10-2024, 10:52 PM - Forum: General Coding Help - Replies (11)

sorry for my bad english,
i have this code
[python]from tkinter import *

def openwindow():
newwindow = Toplevel()
newwindow.minsize(400..... More

Print this item

  Having difficulty finding python.h on OS X
Posted by: catsonmars - Aug-10-2024, 07:46 PM - Forum: General Coding Help - Replies (2)

What I've tried:
I've looked in:
/Library/Frameworks
/usr/lib
/usr/bin
I even looked at the python 3.9 folder in each of my pycharm ide pr..... More

Print this item

  Console Talking music_clock.py
Posted by: johncmd - Aug-10-2024, 02:10 PM - Forum: Code sharing - Replies (1)

Talking Musical Console Alarm Clock
GitHub: https://github.[url=https://python-forum.io/thread-42570.html]..... More

Print this item

  Text
Posted by: Barakaabana - Aug-10-2024, 08:19 AM - Forum: General Coding Help - Replies (1)

What contact details are provided on the site to reach the company?

Print this item

  System showing np.int64(xxx) as output
Posted by: leea2024 - Aug-10-2024, 06:06 AM - Forum: General Coding Help - Replies (3)

I was using Numpy and try to find the number in an array which is the closest to the number 57. I write the following code.
[python]a = np.array([78,..... More

Print this item

  Tkinter popup no grabbing the selected keys - Event propagation
Posted by: Wehaveall - Aug-09-2024, 02:46 PM - Forum: GUI - Replies (2)

Hi guys,

I am creating a popup that, while user is typing, shows some options for the user to select, if tab, enter or arrow keys are pressed, or i..... More

Print this item

Exclamation Date format convert problem for SQL server
Posted by: eotret - Aug-08-2024, 10:57 AM - Forum: General Coding Help - Replies (5)

Hello everyone,

In an application I wrote, I need to change the date information entered by the user in the format DD/MM/YYYY to YYYY/MM/DD in order ..... More

Print this item

  Warning - ' invalid escape sequence '\s''
Posted by: tester_V - Aug-07-2024, 11:28 PM - Forum: General Coding Help - Replies (4)

Greetings!
I'm looking for the tree specific lines in my files (see below), and I have a regex that gets me the lines but it also prints warnings in ..... More

Print this item

  HELP!!! string logical sorting
Posted by: kucingkembar - Aug-07-2024, 10:35 PM - Forum: General Coding Help - Replies (13)

sorry for my bad english,
i have this problem :

thelist = ["t9","t8","t11","t10"]
print(thelist)
thelist.sort()
print(thelist)
..... More

Print this item

Lightbulb Web scraping from bar chart in image format with Python
Posted by: Dacodac - Aug-07-2024, 08:16 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello.

I want to extract data (x,y values from axis) from bar chart saved in image (tag <IMG> in HTML). I don't know if it is possible.

If poss..... More

Print this item

Star Problemas com versões do Python
Posted by: Renato - Aug-07-2024, 05:07 PM - Forum: General Coding Help - No Replies

Segue a versão instalado 3.11.3 do python

Estou gerando um arquivo de orçamento em PDF, mais ao rodar o código no jupyter notebook na versão 3.11.3..... More


Attached Files

Thumbnail(s)
               
Print this item

  POST Syntax error
Posted by: amplay - Aug-07-2024, 02:43 PM - Forum: General Coding Help - No Replies

This code is giving me a Syntax error at POST:

[python]curl --request POST \
--url https://api.schwabapi.com/trader/v1/acco...unt_hash}/..... More

Print this item

  How to make my Telegram bot stop working at 16:15 and not work on Fridays?
Posted by: hus73 - Aug-07-2024, 02:05 PM - Forum: General Coding Help - Replies (2)

I have a Telegram bot written in Python using the Telethon library. The bot is supposed to function from 10:00 to 16:15 from Saturday to Thursday, and..... More

Print this item

  Open for Work - Full Stack Developer
Posted by: David3562 - Aug-07-2024, 10:52 AM - Forum: Jobs - No Replies

Hello,

I am currently seeking a new project.

The type of project I am interested in:

Contract / Freelance Work
Rate: $30 per hour
Fully Rem..... More

Print this item

Question Custom object as URL query param
Posted by: gradlon93 - Aug-06-2024, 09:00 PM - Forum: Web Scraping & Web Development - No Replies

Good evening, I hope this is the right section for my question.

I am working on an API that serves as backend for a React webapp, and uses FastAPI a..... More

Print this item

  print in shell: b ???
Posted by: trix - Aug-06-2024, 06:45 PM - Forum: General Coding Help - Replies (18)

hello,

i have a simple question, when i print something in the shell there apears a b in front of the variable.
what means the b ?
..... More

Print this item

  Append from csv to xlsx with values only
Posted by: Sick_Stigma - Aug-06-2024, 04:11 PM - Forum: General Coding Help - Replies (2)

I'm trying to find in Activities[1:30000] the 1st cell that matches Report[1, 0] and remember that cell address. Then copy Report[1:30000, 0:37] and p..... More

Print this item

  Pornography Addiction Screenshots Code
Posted by: Sprunkle - Aug-06-2024, 02:55 PM - Forum: Code Review - Replies (2)

I have written some code that takes screenshots of a dual-monitor setup. If it 'sees' images with a certain ratio of skin tone-colored pixels, if send..... More

Print this item

  List overwritten
Posted by: Adolfoper - Aug-06-2024, 01:36 PM - Forum: General Coding Help - Replies (3)

My list is overwritten, but I don't see why. The objects are new instances and the list assignment is doing using copy, but the first object's list va..... More

Print this item

  Highlight text with Reportlab
Posted by: beetlecad - Aug-06-2024, 08:56 AM - Forum: General Coding Help - Replies (2)

Hi to all,
I am programming a project that make several PDFs with Python + Reportlab.

Before the program, I worked manually creating word files, w..... More

Print this item

  Problem loading geometries with trimesh
Posted by: wi0712 - Aug-06-2024, 12:55 AM - Forum: General Coding Help - Replies (4)

I am trying to use trimesh to load geometries and analyze them, but I simply can not get python/ trimesh to load them at all.
I´ve tried both .obj a..... More

Print this item

  How can I create this type hint.
Posted by: deanhystad - Aug-05-2024, 07:55 PM - Forum: General Coding Help - No Replies

I am trying to create a type string using type hint information I get using inspect.signature(). I have this working for most types:
[output]Type ..... More

Print this item

Shocked Difficulty understanding .moveaxis in Numpy
Posted by: leea2024 - Aug-05-2024, 01:24 PM - Forum: General Coding Help - Replies (2)

I am having difficulties understanding .moveaxis in Numpy.

I first create an array by using a=np.arange(24).reshape(2,3,4). The system will fir..... More

Print this item

Photo Help needed for School Assignment
Posted by: keeratkaur - Aug-05-2024, 08:47 AM - Forum: Homework - Replies (2)

so my teacher gave us this assignment, she showed us a video in the class and then we had to replicate it by ourselves. i, unfortunately, do not have ..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 28 minutes ago lary_p jefsummers Homework
  Help with Serial.write in... 2 hours ago racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... Yesterday, 09:52 tsgiannis tsgiannis GUI
  Backward compatibility qu... Yesterday, 05:07 yutaozhou Gribouillis News and Disc...
  [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
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
  Recommend me a Python boo... 11-06, 08:33 woodward mamta25 Data Science
Most views
  The best Prog... 578843
  Tutorial Requ... 509882
  Web Scraping ... 441917
  Newbie with P... 385919
  New Users Int... 376172
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 6907
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
kai_cow2710 Today
Kacper Yesterday
isla123456 Yesterday
vibrometro Yesterday
thebigback 11-10

User Panel Messages

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