Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,811
» Latest member: ericxzhou
» Forum threads: 37,498
» Forum posts: 170,376

Full Statistics

Online Users
There are currently 343 online users.
» 1 Member(s) | 334 Guest(s)
Facebook, Google, Baidu, Bing, Apple, AOL, bowlofred

Latest Threads
Working with group of lin...
Forum: General Coding Help
Last Post: Gribouillis
1 hour ago
» Replies: 1
» Views: 76
Extracting content from a...
Forum: Web Scraping & Web Development
Last Post: Fernanda
4 hours ago
» Replies: 2
» Views: 171
Pygame freezes after cert...
Forum: Game Development
Last Post: deanhystad
4 hours ago
» Replies: 4
» Views: 5,476
My first python game : Ti...
Forum: Game Development
Last Post: deanhystad
5 hours ago
» Replies: 5
» Views: 169
adding mouse control to g...
Forum: Game Development
Last Post: XavierPlatinum
7 hours ago
» Replies: 7
» Views: 534
[split] Class and methods
Forum: General Coding Help
Last Post: ebn852_pan
11 hours ago
» Replies: 9
» Views: 404
Parsing "aTimeLogger" And...
Forum: Data Science
Last Post: LauraB
Yesterday, 07:20 PM
» Replies: 4
» Views: 350
How to run this triple in...
Forum: Homework
Last Post: Axel_Erfurt
Yesterday, 11:43 AM
» Replies: 1
» Views: 113
How to parse and group hi...
Forum: Homework
Last Post: AlinaHabba24
Yesterday, 09:22 AM
» Replies: 1
» Views: 267
Need to fix ValueError: A...
Forum: Data Science
Last Post: alexanderDennisEnviro500
Yesterday, 08:07 AM
» Replies: 0
» Views: 93

 
  OR-Tools LP Limit Number of Elements in Solution
Posted by: idratherbecoding - May-14-2023, 11:02 PM - Forum: Data Science - No Replies

I have a relatively simple binary integer optimization problem and I am using Google OR-Tools' linear solver. I started the project in C#, but have si..... More

Print this item

  how can I call the API using python
Posted by: alifihri - May-14-2023, 10:09 PM - Forum: General Coding Help - Replies (5)

I'm using this code for a while and it worked well:

[python]# This is needed to send POST and GET requests
import requests
import csv
import num..... More

Print this item

  How do you get Python to print just one value in a list?
Posted by: 357mag - May-14-2023, 07:20 PM - Forum: General Coding Help - Replies (3)

If I just want Python to print the value in a certain index position in list how do I do it?

This is not giving me what I want:

[python]
number..... More

Print this item

  Surface and rectangle in pygame
Posted by: Fabrizio_fg - May-14-2023, 01:53 PM - Forum: Game Development - Replies (6)

Hello eveyone,

Just a stupid question:
in many tutorials found on internet to draw object on the window we use surfaces and rectangles.
first we ..... More

Print this item

  [SOLVED] [loop] Exclude ranges in… range?
Posted by: Winfried - May-14-2023, 01:36 PM - Forum: General Coding Help - Replies (2)

Hello,

I need to exclude pages in a loop, but those exceptions could be several pages, so I need to find a way to specify individual pages as well ..... More

Print this item

  NoReverseMatch at /
Posted by: pythonpaul32 - May-14-2023, 08:41 AM - Forum: Web Scraping & Web Development - Replies (2)

I am trying to make a hotel reservation app with Django, but I am completely stumped why I keep getting this error

NoReverseMatch at /
Reverse for..... More

Print this item

  Problem with colorkey
Posted by: Phidias618 - May-14-2023, 08:27 AM - Forum: Game Development - Replies (4)

Hello, in one of my project I encounter a problem with pygame.set_colorkey,
I have a code like this, where Sprite is just a class to load and get Spr..... More

Print this item

  More OCR
Posted by: DPaul - May-14-2023, 06:54 AM - Forum: Bar - Replies (6)

Hi,
It happens that some prayer cards are in poor condition or have poor print quality.
Amongst the zillions processed, they do not always stand out..... More

Print this item

  where is documentation for stat result attributes in PDF docs?
Posted by: Skaperen - May-13-2023, 11:50 PM - Forum: News and Discussions - Replies (5)

in The Python Library Reference there are three places i find lower case "st_mode". all three are in code samples. i find the same for lower case "s..... More

Print this item

  variable not defined inside a list comprehension
Posted by: Phidias618 - May-13-2023, 08:47 PM - Forum: News and Discussions - Replies (1)

Hello, in a program i have a class like this one but when in run the code i get that x is not defined, is this problem relative to list comprehension?..... More

Print this item

  combobox
Posted by: paulie70 - May-13-2023, 06:44 PM - Forum: GUI - Replies (3)

hello

i am new at python en gui tkinter my combobox don't show

[python]import tkinter
from tkinter import ttk



window = tkinter.Tk(..... More

Print this item

  Why there is not __break__ dunder method
Posted by: Phidias618 - May-13-2023, 02:42 PM - Forum: News and Discussions - Replies (4)

Hello,
Yesterday I ran into an issue, i try to iterate multiple time trough a custom class,
the class is a chess Board and iterating trough it would g..... More

Print this item

  TCP server syntax error
Posted by: wabbit - May-13-2023, 11:29 AM - Forum: Networking - Replies (2)

I'm trying to create a tcp server on python. Does anyone know why I'm receiving this syntax error despite defining 'server' earlier in the code. Is it..... More


Attached Files

Thumbnail(s)
   
Print this item

  Advancing Through Variables In A List
Posted by: knight2000 - May-13-2023, 03:30 AM - Forum: General Coding Help - No Replies

Hi guys,

I'm practising some simple webscraping on a website which has different categories and within each category, has a number of pages. What ..... More

Print this item

  Bundesbank API Problems
Posted by: illmattic - May-12-2023, 05:21 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello,

So far I'm 0/2 on APIs. I am a beginner but I keep running into problems with APIs.

The German Bundesbank provides an API and the docume..... More

Print this item

  function on a different tab ?
Posted by: trix - May-12-2023, 04:28 PM - Forum: General Coding Help - Replies (30)

hello,

i,m programming a raspberry pi pico with the thonny IDE

its gonna be a big programm Smile
so i want to create some c..... More

Print this item

  Installation problems
Posted by: standenman - May-12-2023, 01:59 PM - Forum: Data Science - Replies (4)

I am having terrible problems with using python. I have installed Python 3.11.3. I have created a virtual environment. I activate the environment a..... More

Print this item

  Python script running under windows over nssm.exe
Posted by: JaroslavZ - May-12-2023, 09:22 AM - Forum: General Coding Help - No Replies

I have a python script that runs inside this command:

subprocess.run([driver, '/print:printer=' + printer, filename])
If the sc..... More


Attached Files

.py   PrinterBridge.py (Size: 3.1 KB / Downloads: 99)
Print this item

  Trying to understand global variables
Posted by: 357mag - May-12-2023, 04:40 AM - Forum: General Coding Help - Replies (5)

Just learning about using a global variable. I have this going:
[python]
x = 4

def show_value():
print('Value of x: '+ str(x))
# x += 3..... More

Print this item

  [split] plt.style() in matplotlib causes error
Posted by: olufaruqu - May-11-2023, 04:45 PM - Forum: Data Science - Replies (4)

Dear Team

I tried running the below command on my anaconda prompt in one of a serial steps to install jupyter-matplotlib with a self paced video b..... More

Print this item

  Raspberry PI with DHT22 Sensors
Posted by: itpilot - May-11-2023, 09:41 AM - Forum: General Coding Help - Replies (6)

guys please can you help the noob

i have connected 6 x DHT22 Temperature and Humidity Sensors on my Raspberry PI 4

I am g..... More

Print this item

  Error coming
Posted by: PKT - May-11-2023, 09:06 AM - Forum: GUI - Replies (1)

Hi,

I am write program on python program & it is running perfectly.

Now i tried to create exe file using pyinstaller.

exe file created but no..... More

Print this item

  double keyed dictionaries
Posted by: Skaperen - May-11-2023, 02:53 AM - Forum: News and Discussions - Replies (2)

in many cases i need to go both ways in references held by a dictionary. i very often use the same one dictionary when i know the keys each way will ..... More

Print this item

  Master thesis research: A Python version update behavior survey
Posted by: AJB96 - May-10-2023, 04:56 PM - Forum: Bar - Replies (2)

Hi there!

I am currently writing my Master thesis research project related to Python.

The ultimate goal of the project is to explore and underst..... More

Print this item

  Failure in the Code to integrate via API Holded (accounting system) to Excel.
Posted by: maicolvela - May-10-2023, 01:08 PM - Forum: Web Scraping & Web Development - Replies (1)

My code fails and I can't find or fix the errors, could you help me please.

[python]import requests
import pandas as pd

# URL para obtener el a..... More

Print this item

  Understanding venv; How do I ensure my python script uses the environment every time?
Posted by: Calab - May-09-2023, 09:49 PM - Forum: General Coding Help - Replies (1)

I have several python scripts. Each script starts with a shebang line of #!/usr/local/bin/python3. To execute my scripts I simply enter ./scriptname.p..... More

Print this item

Thumbs Down I hate "List index out of range"
Posted by: Melen - May-09-2023, 09:44 PM - Forum: General Coding Help - Replies (20)

Hello!

I have a question, but please don't give me the answer. I'm just looking for some tips. I'm new to Python, and I'm posting here because I ca..... More

Print this item

  API Request / JSON
Posted by: illmattic - May-09-2023, 01:45 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

I am having difficulty pulling data from an API which says that parameter content needs to be application/json. Here is the link to the the ..... More

Print this item

  html module in python 3.6.8
Posted by: suifra - May-09-2023, 07:24 AM - Forum: General Coding Help - Replies (9)

I am new to Python and stuck in an issue, have researched in stackoverflow but couldnt get an answer. The problem statement is as below.

Problem: I..... More

Print this item

  It seems you have to define functions at the top
Posted by: 357mag - May-09-2023, 04:17 AM - Forum: General Coding Help - Replies (7)

I wrote a program that defines two functions: one function squares an integer and the other function cubes it.

When I put the function definitions ..... More

Print this item

  Splitting PDF at Bookmark level 2
Posted by: standenman - May-08-2023, 07:20 PM - Forum: Data Science - Replies (8)

I am trying to split a pdf document at the second bookmark level Here is my code:

[python]import os
import PyPDF2

# Open the PDF file
input_p..... More

Print this item

  New to python/coding Need help on Understanding why this code isn't working. Thanks!
Posted by: mat3372 - May-08-2023, 08:51 AM - Forum: General Coding Help - Replies (8)

Hi all! I am new to python and coding in general. I am following along in a book and have come across code that the(interpreter/compiler **not sure wh..... More

Print this item

  Django images will not load
Posted by: pythonpaul32 - May-08-2023, 02:39 AM - Forum: Web Scraping & Web Development - Replies (3)

I am trying to make a hotel reservation app, but my images will not load. I am using Django and Bootstrap

I have my pictures in a media directory i..... More

Print this item

  why do we need dict.get() ?
Posted by: Skaperen - May-06-2023, 11:55 PM - Forum: News and Discussions - Replies (10)

dict instances have a .get() method that is similar to the .pop() they also have, except nothing is removed and the ..... More

Print this item

  Monitoring a Directory for new mkv and mp4 Files
Posted by: lastyle - May-06-2023, 11:42 PM - Forum: General Coding Help - Replies (3)

Hi all,

i wanted to code a Monitor that observes a Folder and it`s subfolders for new mkv and mp4 Files. But when i add a File to the Folder the Ro..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Working with group of lin... 1 hour ago knob Gribouillis General Codin...
  Extracting content from a... 4 hours ago SandraYokum Fernanda Web Scraping ...
  Pygame freezes after cert... 4 hours ago GJG deanhystad Game Developm...
  My first python game : Ti... 5 hours ago ForsakenDusk deanhystad Game Developm...
  [PyGame] adding mouse con... 7 hours ago flash77 XavierPlatinum Game Developm...
  [split] Class and methods 11 hours ago ebn852_pan ebn852_pan General Codin...
  Parsing "aTimeLogger" And... Yesterday, 19:20 Drone4four LauraB Data Science
  How to run this triple in... Yesterday, 11:43 Safinazsalem Axel_Erfurt Homework
  How to parse and group hi... Yesterday, 09:22 ann23fr AlinaHabba24 Homework
  Need to fix ValueError: A... Yesterday, 08:07 alexanderDennisEnviro500 alexanderDennisEnviro500 Data Science
  python in cpanel I need a... Yesterday, 07:27 Kfcfan lexusolution Web Scraping ...
Most views
  The best Prog... 462362
  Web Scraping ... 342442
  Tutorial Requ... 332241
  Newbie with P... 279352
  Thread remain... 264145
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 341
deanhystad 313
Most replies
  New Users Int... 432
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11883
buran 8091
snippsat 7107
deanhystad 6271
metulburr 5150
Top referrers
Googlepro 20
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
ericxzhou Today
yosmery83 Today
xhuljo Yesterday
Rasem Yesterday
Fernanda Yesterday

User Panel Messages

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