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,260
» Latest member: nathanael
» Forum threads: 38,784
» Forum posts: 175,840

Full Statistics

Online Users
There are currently 48 online users.
» 1 Member(s) | 45 Guest(s)
Bing, Google, kshahzad1985

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: nathanael
24 minutes ago
» Replies: 0
» Views: 11
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
4 hours ago
» Replies: 0
» Views: 39
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
4 hours ago
» Replies: 10
» Views: 210
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
7 hours ago
» Replies: 3
» Views: 110
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 196
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 375
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 126
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 261
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 412
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 156

 
  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

Photo Unable to Extract a web element
Posted by: law - Feb-24-2021, 11:14 AM - Forum: Web Scraping & Web Development - Replies (6)

Hello,
I have this Selenium web scrapping project I've been working on for while, everything have been awesome till recently the website got updated ..... More

Print this item

Question exiting the outer function from the inner function
Posted by: banidjamali - Feb-24-2021, 07:16 AM - Forum: General Coding Help - Replies (3)

Hello everyone.

In the code below I have simplified a result I'm trying to achieve.
I want to know how I can exit the outer function when the inne..... More

Print this item

Question Dataframe Manipulation Coping Rows and Removing Dates
Posted by: ashleysnl - Feb-24-2021, 02:18 AM - Forum: General Coding Help - Replies (1)

Hello,

I have a data frame that contains two dates in a single column. I would like to copy the column and split the dates. how can I achieve this..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 24 minutes ago nathanael nathanael General Codin...
  PyQt6 QWidgets and system... 4 hours ago stevecoh1 stevecoh1 GUI
  [solved] re.split issue 4 hours ago paul18fr deanhystad General Codin...
  Please guide me to comple... 7 hours ago pbkurd Larz60+ General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
Most views
  The best Prog... 578960
  Tutorial Requ... 510435
  Web Scraping ... 441973
  Newbie with P... 385992
  New Users Int... 377023
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 6910
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
nathanael Today
JamesFalkner Today
stevecoh1 Today
Bamboo Today
TomTMH Yesterday

User Panel Messages

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