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,263
» Latest member: aanthonymaaleyo3938
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

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

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
11 hours ago
» Replies: 2
» Views: 88
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:42 PM
» Replies: 1
» Views: 53
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 01:54 PM
» Replies: 1
» Views: 59
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 313
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 45
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 70
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 261
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 141
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 236
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 421

 
  excel - json
Posted by: jmabrito - Feb-26-2021, 06:32 PM - Forum: General Coding Help - Replies (23)

{"3025": {"pos1": null, "pos2": 11, "pos3": null, "pos4": 34, "pos5": 41},
"3026": {"pos1": 6, "pos2": null, "pos3": 27, "pos4": 36, "pos5": null},..... More

Print this item

  Login and download an exported csv file within a ribbon/button in a website
Posted by: Alekhya - Feb-26-2021, 04:15 PM - Forum: Web Scraping & Web Development - No Replies

I am trying to log into a website and download a specific file by using export option within a ribbon

Specifically, I am logging into a primary web..... More

Print this item

Star Interesting Intro to python problem I can't solve.
Posted by: Honestworker - Feb-26-2021, 04:04 PM - Forum: Homework - Replies (5)

Can anyone solve this problem?

“How Old is Your Dog in Human Years?” Calculator

Write a program that calculates a dog’s age in human years. The ..... More

Print this item

  Designing AI for games using Monte Carlo Tree Search.
Posted by: ai_masti - Feb-26-2021, 02:31 PM - Forum: Tutorial Requests and Submissions - No Replies

Hello everyone, I have created a tutorial on Monte Carlo Tree Search Algorithm and it's application in games. This tutorial explains the MCTS algorith..... More

Print this item

  User input/picking from a list
Posted by: AnunnakiKungFu - Feb-26-2021, 02:03 PM - Forum: General Coding Help - Replies (2)

I am trying to figure out how to use user input to select items from a list and display how much the item is. This is what I have so far.

[python]#..... More

Print this item

  If statement not separating Albums
Posted by: giddyhead - Feb-26-2021, 09:48 AM - Forum: General Coding Help - Replies (5)

If statement does not separate between Albums from List. When ran it all prints Yes and when I used not equal all printed no. Why is it not checking t..... More

Print this item

  All Array Index
Posted by: JohnnyCoffee - Feb-26-2021, 05:45 AM - Forum: General Coding Help - Replies (3)

In the example below, how do I list all (index numbers) of the existing elements of the array because using the index () without passing one or more a..... More

Print this item

  matplotlib.pyplot.show
Posted by: Alienspecimen - Feb-26-2021, 03:08 AM - Forum: General Coding Help - Replies (2)

I am starting to learn about plotting and have a question about what plt.show() does.

I get the definition "The show() function in pyplot module of m..... More

Print this item

  Menu destroy
Posted by: Heyjoe - Feb-26-2021, 01:46 AM - Forum: GUI - Replies (5)

Hello fellow python users:

This program produces a menu of green labels and buttons, a menu of red labels and buttons and a purple menu.

When th..... More

Print this item

  How do I split the output?
Posted by: AnunnakiKungFu - Feb-25-2021, 10:34 PM - Forum: General Coding Help - Replies (2)

Quick and easy question, I am sure. I am creating two lists and then taking one item from each list to create a separate list. When I run the program ..... More

Print this item

  Help with an if statement
Posted by: stylingpat - Feb-25-2021, 10:17 PM - Forum: General Coding Help - Replies (5)

I’m working through my Python Crash Course book and building one of the “try it yourself” tests.

I don’t understand why the username Admin is being..... More

Print this item

  Reading a csv file
Posted by: Led_Zeppelin - Feb-25-2021, 10:03 PM - Forum: General Coding Help - Replies (2)

When I out in some python 3.8.2 code I get the following error

[error]
KeyError Traceback (most recent call last)..... More

Print this item

Bug How to print only vowels from an input?
Posted by: PP9044 - Feb-25-2021, 09:54 PM - Forum: Homework - Replies (8)

Hi everyone,
I am running into a task that needs your help.
The task is:
Ask for user input, and write a for loop that will output all the vowels w..... More

Print this item

Photo Customizing Slider Widget
Posted by: fishbackp - Feb-25-2021, 09:21 PM - Forum: General Coding Help - No Replies

I'm using a Slider widget to horizontally scroll through the heatmap of a 4-by-10000 matrix. Each window in my slider shows 100 columns of the matrix...... More

Print this item

  Rapidly Develop Python Microservices
Posted by: katepackard1017 - Feb-25-2021, 08:40 PM - Forum: Tutorial Requests and Submissions - No Replies

Kubernetes has become the de-facto standard for running cloud applications. With Kubernetes, users can deploy and scale containerized applications at ..... More

Print this item

  Conceptualizing modulus. How to compare & communicate with values in a Dictionary
Posted by: Kaanyrvhok - Feb-25-2021, 07:10 PM - Forum: General Coding Help - Replies (7)

Hello all

I have two questions

The first is why one change calculator works and the other doesn't.

The second question is about how to effi..... More

Print this item

  GridSearchCV generates unexpected different best parameters. Please help!
Posted by: yili2005 - Feb-25-2021, 03:52 PM - Forum: Data Science - No Replies

I am using GridSearchCV to find the best parameter setting of my sklearn.pipeline estimator. The pipeline consists of data transformation, UMAP dimens..... More

Print this item

  python selenium - get info from nested divs
Posted by: damian0612 - Feb-25-2021, 02:56 PM - Forum: Web Scraping & Web Development - Replies (3)

Hi, I'm new to selenium and am trying to grab information from the html below. The info I want is the student name located at the a_href (below as Joh..... More

Print this item

  Python is on Mars !
Posted by: Gribouillis - Feb-25-2021, 02:05 PM - Forum: News and Discussions - Replies (2)

Nasa's helicopter Ingenuity ..... More

Print this item

  keyboard module doesn't work in the microsoft version terminal of python.
Posted by: username - Feb-25-2021, 10:20 AM - Forum: General Coding Help - Replies (1)

All you need to know is that there is program A (which is written in batch) and program B (regular python). Program A initiates program B to start min..... More

Print this item

  Getting a certain value from inside brackets.
Posted by: LeoT - Feb-25-2021, 08:47 AM - Forum: General Coding Help - Replies (5)

Hi there,
I'm a beginner so this problem might be very ease to solve.
Im doing a request to a device that responds with the following raw data:
[p..... More

Print this item

  Rotated Rectangle overlap using Shapely
Posted by: pyNew - Feb-25-2021, 04:54 AM - Forum: General Coding Help - No Replies

Hello All,

New to this forum and have a computational geometry question. I would like to know how to calculate the intersection area of two Rectang..... More

Print this item

  what does os.fspath() really do?
Posted by: Skaperen - Feb-25-2021, 03:12 AM - Forum: News and Discussions - Replies (7)

what does os.fspath() really do?

Print this item

  importing matplotlib in jupyter notebook
Posted by: Led_Zeppelin - Feb-24-2021, 07:32 PM - Forum: General Coding Help - Replies (4)

The following code produces the following error;


[python]
import pandas as pd
from matplotlib import pyplot as plt
import math
import re
imp..... More

Print this item

  MacOS BigSur Python3 - dyld: Library not loaded:
Posted by: trillionanswers - Feb-24-2021, 07:27 PM - Forum: General Coding Help - Replies (1)

Hello,

I upgrade to MacOS Big Sur and unfortunately now Python3 is no longer operable.

The full result is the following:

dyld: Library not lo..... More

Print this item

  Code by Voice using Python ( Need HELP in making ADVANCE )
Posted by: pawandeore - Feb-24-2021, 06:52 PM - Forum: Homework - No Replies

Hi Friends

I have a project https://github.com/pavandeore/voicecoding-finalyear For F..... More

Print this item

  GUI skips code part
Posted by: MLGpotato - Feb-24-2021, 06:39 PM - Forum: GUI - Replies (7)

Hello!
Can anyone help me? I dont know why but it just litearly skips gamemain(). :/ Wall Currently there are no errors in the code.
[python]
f..... More

Print this item

Question Text color (ascii) in a dictionary
Posted by: banidjamali - Feb-24-2021, 05:44 PM - Forum: General Coding Help - Replies (1)

Hello everyone.

In this code:
[python]
spots = {1: '1', 2: '2', 3: '3'}
spots[1] = '\033[93mONE\033[0m'

print(spots[1])
print(spots)
[/pyth..... More

Print this item

  int() argument Error.... but it's not :)
Posted by: LeoT - Feb-24-2021, 05:39 PM - Forum: General Coding Help - Replies (2)

Hi there,
my code is totally fine but only during day time :)
I basically do a GET request to a solar inverter that responds (during day time!) with..... More

Print this item

  Continue command in python tkinter?
Posted by: MLGpotato - Feb-24-2021, 04:37 PM - Forum: GUI - Replies (7)

Hello! Is there anyway to set a continue command to button without making another def?
[python]enter = Button(root, text = "Name your self" command =..... More

Print this item

  Upgraded Django, `AdminSplitDateTime` causes exception on `list` object
Posted by: 1780yz - Feb-24-2021, 03:56 PM - Forum: Web Scraping & Web Development - Replies (2)

I'm upgrading a project from Python2.7 + Django1.8 to Python3.7 + Django3.1. The application contains a form using w..... More

Print this item

  How to programmatically exit without Traceback?
Posted by: Mark17 - Feb-24-2021, 03:47 PM - Forum: General Coding Help - Replies (7)

This code ends by printing 4:

import sys

for i in range(10):
    if i == 5:
          sys.exit(0)
    print(i)
When I e..... More

Print this item

  re: delete string onwards
Posted by: JohnnyCoffee - Feb-24-2021, 03:12 PM - Forum: News and Discussions - Replies (3)

I get a dynamic data string that I capture from the HTTP header, assigning a variable according to the example below:

[python]
lang = 'pt-br,pt;q=..... More

Print this item

  Getting a GET request output text into a variable to work with it.
Posted by: LeoT - Feb-24-2021, 01:38 PM - Forum: General Coding Help - Replies (2)

Hi there,
I'm an total beginner in python and currently experimenting with the request library.
I basically want to do a GET request to my local sol..... More

Print this item

  Why getting ValueError : Math domain error in trig. function, math.asin() ?
Posted by: jahuja73 - Feb-24-2021, 11:56 AM - Forum: General Coding Help - Replies (3)

Unable to see why error in output.
Tried on repl.it, as well as ideone.com; and get the same error.

[python]
#your code goes here
import math

# num..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 11 hours ago nathanael deanhystad General Codin...
  PermissionError: [Errno 1... Yesterday, 14:42 Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... Yesterday, 13:54 Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 579001
  Tutorial Requ... 510739
  Web Scraping ... 442013
  Newbie with P... 386049
  New Users Int... 377350
Most reputation
buran 581
snippsat 511
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday
nathanael 11-14
JamesFalkner 11-14

User Panel Messages

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