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,554
» Latest member: ManuelViory
» Forum threads: 38,665
» Forum posts: 175,209

Full Statistics

Online Users
There are currently 258 online users.
» 0 Member(s) | 251 Guest(s)
Google, Bing, Baidu, Applebot, Yandex, Internet Archive

Latest Threads
Доставка цветов в Томске
Forum: General Coding Help
Last Post: ManuelViory
13 minutes ago
» Replies: 0
» Views: 6
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: deanhystad
5 hours ago
» Replies: 5
» Views: 205
How to package code for d...
Forum: General Coding Help
Last Post: snippsat
10 hours ago
» Replies: 2
» Views: 148
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
Jul-15-2025, 08:52 AM
» Replies: 1
» Views: 103
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
Jul-15-2025, 07:45 AM
» Replies: 8
» Views: 55,611
A penny doubled every day...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:35 AM
» Replies: 6
» Views: 748
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:31 AM
» Replies: 3
» Views: 1,214
While loop is terminating...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:29 AM
» Replies: 3
» Views: 453
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:28 AM
» Replies: 3
» Views: 242
Unable to define function...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:26 AM
» Replies: 2
» Views: 103

 
  trouble with semicolons
Posted by: Skaperen - Apr-25-2023, 07:18 PM - Forum: News and Discussions - Replies (6)

i'm still having trouble with semicolons. but it does not seem to be the spacing issue i previously thought it was. here is my latest example (avoid..... More

Print this item

  Python Script to convert Json to CSV file
Posted by: chvsnarayana - Apr-25-2023, 04:48 PM - Forum: General Coding Help - Replies (8)

Hi All,

We have one requirement to convert Json to CSV file. In json file, values are there for all the columns, some columns are missing but when ..... More

Print this item

  Need help with sorting lists as a beginner
Posted by: Realist1c - Apr-25-2023, 03:39 AM - Forum: General Coding Help - Replies (1)

I am trying to sort scores from a list that was put into a text file and then transferred into another list. I have tried two methods (shown below) bu..... More


Attached Files

Thumbnail(s)
       
Print this item

  Pyspark dataframe
Posted by: siddhi1919 - Apr-24-2023, 07:48 PM - Forum: General Coding Help - Replies (3)

we have a requirement where we need to extract a value from a column of a dataframe and then we have to match this extracted value to another column o..... More

Print this item

  Text-Based RPG - After selecting correct decision it also prints others code
Posted by: KimJiwoo1 - Apr-24-2023, 07:29 PM - Forum: Game Development - Replies (1)

Hiya,

First off, apologies for a presumably hilarious error or gap in knowledge!

I, along with two others have been tasked with making a text-ba..... More


Attached Files

.pdf   Flow Chart - Game.pdf (Size: 123.04 KB / Downloads: 289)
Print this item

  python dictionary syntax
Posted by: nafshar - Apr-24-2023, 06:26 PM - Forum: General Coding Help - Replies (2)

can someone explain how the following dictionary definition is supposed to work?
Pycharm shows it as a syntaxial error, but the class I am taking sho..... More

Print this item

Question my pygame car wont move
Posted by: Erio85 - Apr-24-2023, 04:01 PM - Forum: Game Development - Replies (1)

hi like it says in the title my pygame car wont move unless the mouse is on the window and actively moving about. the window itself is updating (i kno..... More


Attached Files

.py   main.py (Size: 3.8 KB / Downloads: 295)
Print this item

  Homework, works but has logic error
Posted by: goldielocks789 - Apr-24-2023, 11:22 AM - Forum: Homework - Replies (3)

Hi, I am new to the forum and posting on behalf of my son, who has just started doing Python at school. He has done the code below to show someone ge..... More

Print this item

  Calculate AGE in years
Posted by: Kessie1971 - Apr-24-2023, 07:31 AM - Forum: Homework - Replies (17)

Hello

I want to try to calculate the age in years but in de output i get 1 day instead of 1 year

[python]from datetime import datetime, date
..... More

Print this item

  Chinook Database in Python (Albun Top 10)
Posted by: Kessie1971 - Apr-23-2023, 11:28 AM - Forum: Homework - Replies (10)

How do I make a python program that prints an album top 10 of the albums that have been listened to most often from the Chinook database. The output o..... More


Attached Files

Thumbnail(s)
   
Print this item

  Making a Class Person ?
Posted by: Kessie1971 - Apr-23-2023, 11:14 AM - Forum: Homework - Replies (3)

How do I create a Person class is a generic class, which only stores some basic attributes. These attributes are: name, sex and date of birth (as a da..... More

Print this item

  create a function format_date ?
Posted by: Kessie1971 - Apr-23-2023, 11:10 AM - Forum: Homework - Replies (7)

how do I create a function format_date() which takes a date string as an argument and returns a datetime object.

Example
Print (format_date(“24-1..... More

Print this item

  [SOLVED] [Windows] Fails reading strings with accents
Posted by: Winfried - Apr-23-2023, 10:22 AM - Forum: General Coding Help - Replies (1)

Hello,

On Windows, I'm trying to read a file that has accents. An hexdump shows that it's encoded in Latin1/ISO-8859-1, not UTF-8.

For some reas..... More

Print this item

  create a default path with idle to a specific directory
Posted by: greybill - Apr-23-2023, 04:32 AM - Forum: General Coding Help - No Replies

Currently when I save a python program I have to go through a path to the directory I want. How can I create a default preference for a path that wil..... More

Print this item

  Dictionary Problem
Posted by: Chief816 - Apr-23-2023, 01:31 AM - Forum: Homework - Replies (4)

I'm trying to write a program that keeps a running total of a "customer's" total as they input items off a menu, which in this case happens to be my d..... More

Print this item

  Print names in x-axis of a time-series values
Posted by: hobbyist - Apr-22-2023, 03:01 PM - Forum: General Coding Help - Replies (4)

Hello, I have a .csv that has 2 columns. The first column contains timestamps and the second column CO2 measurements. What I want to do is to plot the..... More

Print this item

  Beginner, problem with CS50 vanity plates problem
Posted by: Chief816 - Apr-22-2023, 05:04 AM - Forum: Homework - Replies (3)

I am brand new to coding in general, and have recently started taking up python courses. For one assignment, the task is to create a program which det..... More

Print this item

  Help on Monte Carlo Simulation of temperature relaxation of He-Ar mixture
Posted by: jorvz - Apr-21-2023, 04:57 PM - Forum: Data Science - Replies (1)

Hey, so i`ve been working on this code for a while for my research but it just doesn't seem to work well, i think it is misscalculating in some step, ..... More

Print this item

  Non repetitive mouse click
Posted by: Sartre - Apr-21-2023, 04:12 PM - Forum: General Coding Help - Replies (5)

I am writing a game bot as part of my learning process. The code I am writing requires a single mouse click to be performed at the start of the code b..... More

Print this item

Question UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 562: ord
Posted by: ctrldan - Apr-21-2023, 03:58 PM - Forum: General Coding Help - Replies (23)

I admit that I'm not an expert of python, I'm working in a python version 2.6.6 (for compatibility with command like unicode). I explain why I use thi..... More

Print this item

  Socks 5 Proxy Server For UDP ASSOCIATE
Posted by: ankit - Apr-21-2023, 12:18 PM - Forum: Networking - Replies (2)

I want Help in Developing Socks5 Based Proxy Server For TCP and UDP Support.
I am able to build it for TCP but facing issue for UDP....

Print this item

  How do I get a slug from a url?
Posted by: Stas43 - Apr-21-2023, 10:56 AM - Forum: Web Scraping & Web Development - Replies (3)

How do I get a slug from a url?
Example:... com/page1/
In my case - page1 is a slug and I want to get it in a template for different operations

Print this item

  Why Pip is not listed in the official Global Python Module index?
Posted by: quazirfan - Apr-21-2023, 06:13 AM - Forum: General Coding Help - Replies (2)

Pip comes built in with Python. That's why I was surprised to see pip not listed in the global module index[1] on official Python documentation.

Why ..... More

Print this item

  Using a String var as URL in Requests.get( )
Posted by: DBB - Apr-20-2023, 11:50 PM - Forum: General Coding Help - Replies (3)

New to python so forgive me...

I have an external .csv file containing several lines, each one of which is a fully formed URL, having user n..... More

Print this item

  quiz game - problem with loading statements from file
Posted by: lapiduch - Apr-20-2023, 01:20 PM - Forum: Homework - Replies (2)

Hello, I'm trying to create a simple myth/fact quiz using tkinter. The game should be for two players - the player who presses the key first (the red ..... More


Attached Files

.txt   fakt_mytus.txt (Size: 340 bytes / Downloads: 207)
.py   1_kolo_anj.py (Size: 2.69 KB / Downloads: 250)
Print this item

  Interfacing from Python to GUI
Posted by: HMartins - Apr-20-2023, 10:26 AM - Forum: General Coding Help - Replies (7)

Hi.

I have written some Python code and is works OK. I now need to, say, interface it better with the user, myself Wink

I got QT Designer a..... More

Print this item

  Working with Machine Learning accelerators
Posted by: hobbyist - Apr-19-2023, 08:38 PM - Forum: Bar - Replies (1)

Can I run Ubuntu on this: https://tinker-board.asus.com/product/ti...dge-r.html and execute python scripts? Like Machine Learning code? Has anyone ..... More

Print this item

  ValueError - Formatting issue when values enter thousands
Posted by: phillyfa - Apr-19-2023, 08:37 PM - Forum: General Coding Help - Replies (4)

I am using the following code to retrieve costs from an Azure subscription. The 'Cost (USD)' data is returning a ValueError when the cost is in the t..... More

Print this item

  code problems
Posted by: bbm007 - Apr-19-2023, 08:27 PM - Forum: General Coding Help - Replies (5)

I have been having problems making a quadratic calculator I'm almost there but the formula at the end is an error and I can't seem to fix it help woul..... More

Print this item

  Nan values after merging 2 dataframes
Posted by: EmBeck87 - Apr-19-2023, 02:01 PM - Forum: General Coding Help - Replies (1)

Hello, I have two pandas dataframes that merged correctly using the "left on = " ", right on =" " method, but after the merge, some of my values in on..... More

Print this item

  I keep getting the same error over and over again.
Posted by: SuchUmami - Apr-19-2023, 12:00 PM - Forum: General Coding Help - Replies (11)

Hello. I am trying to write a trading algorithm for kraken's crypto exchange. I keep getting an error where it says "result"; here is an example:

I..... More

Print this item

  How to set up uwsgi and nginx?
Posted by: Stas43 - Apr-19-2023, 11:10 AM - Forum: Web Scraping & Web Development - Replies (2)

(sorry for the Google translator)

os Ubuntu 20.04 lts server x64

What is done:
mkdir django & cd django
. env/bin/activate
test project djang..... More

Print this item

  Converting timestamp like 2023-04-18T20:00:10.000Z to 20230418200010
Posted by: bigcat - Apr-19-2023, 08:16 AM - Forum: General Coding Help - Replies (2)

Hi,

how to convert a timestamp like 2023-04-18T20:00:10.000Z to 20230418200010 ?

Thanks in advance,
Regards,
Den.

Print this item

  ctypes
Posted by: juliolop - Apr-18-2023, 08:31 PM - Forum: General Coding Help - Replies (7)

how can I declare using ctypes where my DLL file is located.?

this line gives me an error
OSError: [WinError 193] %1 is not a valid Win32 applicat..... More

Print this item

  Adding MIDI Channels to each Input
Posted by: zach1234 - Apr-18-2023, 06:38 PM - Forum: General Coding Help - Replies (6)

Hi Guys, apologies as i am a complete beginner.

I downloaded this python script to map my midi controller to Ableton Live. I am having a problem w..... More


Attached Files

.zip   MixTrack_Quad.zip (Size: 39.29 KB / Downloads: 329)
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Доставка цветов в Томске 13 minutes ago ManuelViory ManuelViory General Codin...
  gpiozero buttons stop wor... 5 hours ago duckredbeard deanhystad General Codin...
  How to package code for d... 10 hours ago mayukun snippsat General Codin...
  pip3 install certifi fail... 07-15, 08:52 rb9594 Pedroski55 General Codin...
  My first python game : Ti... 07-15, 07:45 ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 07-15, 07:35 esoyboy walterliz Homework
  Exercise on reading a chu... 07-15, 07:31 Nit_Picker walterliz Homework
  While loop is terminating... 07-15, 07:29 jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 07-15, 07:28 aryasinner walterliz Homework
  Unable to define function... 07-15, 07:26 gmonroe walterliz Homework
  RemoTe server operation w... 07-14, 10:14 mario17 snippsat General Codin...
Most views
  The best Prog... 572714
  Tutorial Requ... 485779
  Web Scraping ... 437172
  Newbie with P... 380136
  Thread remain... 351392
Most reputation
buran 581
snippsat 507
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+ 12072
buran 8174
snippsat 7353
deanhystad 6860
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ManuelViory Today
Spacecat300300 Today
Dawinch Today
ShanePulse Today
augustuswest Today

User Panel Messages

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