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,261
» Latest member: SledgeNE
» Forum threads: 38,785
» Forum posts: 175,843

Full Statistics

Online Users
There are currently 55 online users.
» 1 Member(s) | 50 Guest(s)
Google, Bing, AOL, AOL, buran

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: SledgeNE
2 hours ago
» Replies: 1
» Views: 50
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: Skaperen
7 hours ago
» Replies: 4
» Views: 286
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
7 hours ago
» Replies: 0
» Views: 28
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Yesterday, 06:38 PM
» Replies: 0
» Views: 51
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:02 PM
» Replies: 10
» Views: 232
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 03:33 PM
» Replies: 3
» Views: 118
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 202
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 388
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 133
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 266

 
  How do I avoid Beautiful Soup redirects?
Posted by: HiImNew - Nov-29-2017, 12:28 AM - Forum: Web Scraping & Web Development - Replies (9)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  transform list to tuple with
Posted by: takaa - Nov-28-2017, 10:30 PM - Forum: General Coding Help - Replies (2)

Hi,

summary:
I have this output: [(1,), (2,), (3,), (4,), (5,)]
Question, how can I transform this to: ('1', '2','3','4',5')

Below is my trial..... More

Print this item

  weird error in random sentence generator
Posted by: bobger - Nov-28-2017, 09:46 PM - Forum: General Coding Help - Replies (9)

i put all the lists on top and the error still occurs.I am using python3.6.3 on windows 10.
sometimes i get this error sometimes not when i run this ..... More

Print this item

  Transcrypt 3.6.56 Python to Javascript compiler now supports embedded JSX.
Posted by: jacques_de_hooge - Nov-28-2017, 09:35 PM - Forum: News and Discussions - Replies (1)

Version 3.6.56 of the Transcrypt Python to JavaScript compiler now supports embedded JSX for use in combination with Rea..... More

Print this item

  Having Trouble With Threading
Posted by: digitalmatic7 - Nov-28-2017, 08:47 PM - Forum: Web Scraping & Web Development - Replies (2)

This code isn't throwing errors, instead it's only giving me limited results based on "for i in range(20)" line. If I have it set as '20' it will only..... More

Print this item

  Relay switches On and Off every cylcle...
Posted by: hotwalk - Nov-28-2017, 05:50 PM - Forum: General Coding Help - Replies (6)

[python]
import RPi.GPIO as GPIO
import Adafruit_DHT
from time import sleep

GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(12,GPI..... More

Print this item

  pandas Dataframe as "confidence table" for matchmaking?
Posted by: takaa - Nov-28-2017, 04:36 PM - Forum: Data Science - Replies (1)

Hi,

I wonder if I am on the right track and would like to get your input on my problem:

Goal:
Find a link between two rows in two tables base..... More

Print this item

  filtering a string
Posted by: hello_its_me - Nov-28-2017, 02:17 PM - Forum: General Coding Help - Replies (6)

Hi everyone,
I am looking for a way to filter words out of a string. I need it to work like this:
The string contains known words and unknown words ..... More

Print this item

  another dice roll!
Posted by: mzmingle - Nov-28-2017, 02:14 PM - Forum: Game Development - Replies (3)

My friend wrote a program that displays an amount of dots (like a dice would), and pauses when you click. I tried to edit this code to use images - bu..... More

Print this item

  Saving the results from an input in a txt. file
Posted by: pythonenthusiast - Nov-28-2017, 01:17 PM - Forum: Homework - Replies (2)

Im currently working on a school project where I have to make a multiplication table where you put in a value for the size you want the table to be. I..... More

Print this item

  my "keep" script
Posted by: Skaperen - Nov-28-2017, 06:13 AM - Forum: Bar - Replies (31)

file keep.py is a command and function that "keeps" a specified file by making a time stamped copy.  ..... More

Print this item

  what i am doing tonight
Posted by: Skaperen - Nov-28-2017, 03:05 AM - Forum: Bar - No Replies

tonight i am doing a lot of rewriting of sessionin.py that inputs to a session, revising the code that interprets the control character escape ..... More

Print this item

  code style - one line subclause on same line
Posted by: Skaperen - Nov-28-2017, 02:50 AM - Forum: News and Discussions - Replies (5)

i used to use this style

   if value is True: count += 1
but i have changed to this style[python]  if value in True:
        count += ..... More

Print this item

  Best Module for Navigating Google Drive?
Posted by: HiImNew - Nov-28-2017, 12:05 AM - Forum: General Coding Help - Replies (2)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Class Instances overriding class members and attributes.
Posted by: Leaf - Nov-27-2017, 09:31 PM - Forum: General Coding Help - Replies (7)

I'm trying to add each person to a list or dictionary. In this case it's a dictionary, but the same thing happens whether I reformat it to be a list t..... More

Print this item

  Array to get profit (school assignment)
Posted by: harryvandervelden - Nov-27-2017, 06:36 PM - Forum: Homework - Replies (2)

I've got an assignment to do, can someone help me out? I don't have a clue what to do.

The bitcoin is a digital currency whose value can go up and ..... More

Print this item

  Immutable Book Class
Posted by: QueenSvetlana - Nov-27-2017, 06:23 PM - Forum: General Coding Help - Replies (10)

[python]from copy import deepcopy


class Book:

def __init__(self, book_title, authors):
self.book_title = book_title
self.author..... More

Print this item

  Creating a file with variable name but distinct extension
Posted by: Moeniac - Nov-27-2017, 05:18 PM - Forum: Homework - Replies (1)

Hello everybody,
for my current homework i need to create an amount of *.csv files, however the filename must be taken from a list that is provided a..... More

Print this item

  Changing object values to see how air resistance works
Posted by: Tomsom - Nov-27-2017, 05:10 PM - Forum: Homework - No Replies

Hey all, I need to make a program in Vpython where you can press a button to launch a ball, which is affected by the air resistance, forward, and chan..... More

Print this item

  Maximum Occurrence Letter
Posted by: GalaxyCR - Nov-27-2017, 02:08 PM - Forum: General Coding Help - Replies (2)

Hey Guys, So I have an assignment regarding finding the most letters used in a word. For some reason I can't seem to make it work as the output that I..... More

Print this item

  Problem with tkinter widget list
Posted by: Larz60+ - Nov-27-2017, 12:54 PM - Forum: GUI - Replies (2)

This is part of the Enigma project that I am working on.
I'm adding a new post here, because this is a question having to do specifically with a GUI ..... More

Print this item

  when calling module comes up with syntax error
Posted by: DAS - Nov-27-2017, 12:50 PM - Forum: General Coding Help - Replies (5)

[python]def main():
#These are the two options available
print ("1: register")
print("2: login")

signIn = int(input("Do you ..... More

Print this item

  dice roll?
Posted by: mzmingle - Nov-27-2017, 11:38 AM - Forum: Game Development - Replies (1)

For homework I've been told to write a pygame program where you can click to roll a dice. I've tried making it so you just click a button and it displ..... More

Print this item

  for loop execution
Posted by: sumandas89 - Nov-27-2017, 08:19 AM - Forum: General Coding Help - Replies (5)

I python documentation I found the below code and it's output -

[b]>>> a = ['Mary', 'had', 'a', 'little', 'lamb']
>>> for i in range(len(a)):
........ More

Print this item

  interesting gotcha
Posted by: Skaperen - Nov-27-2017, 07:49 AM - Forum: News and Discussions - Replies (11)

i have been putting comments in the triple-quoted string at the beginning of modules and functions.  this was the source of some errors that did not s..... More

Print this item

  Two Dimensional Chart from CSV File
Posted by: srini1995 - Nov-27-2017, 07:10 AM - Forum: Data Science - No Replies

The file contains some data points in Melbourne housing data.
1. Average price per Suburb (Suburd name in X-axis and Average price in Y-Axis)
2. Tot..... More

Print this item

  change to home directory
Posted by: Skaperen - Nov-27-2017, 04:20 AM - Forum: General Coding Help - Replies (2)

what is the "best", most pythonic, way to change to the home directory so that all file operations are now relative to the home directory and any prog..... More

Print this item

  BS4 - Is There A More Efficient Way Of Doing This?
Posted by: digitalmatic7 - Nov-27-2017, 04:03 AM - Forum: Web Scraping & Web Development - Replies (4)

Say I want to search for 30 keywords within each set of scraped html data, what would be the best way to go about it? Should I keep repeating the same..... More

Print this item

  Need help with a Basic API Query.
Posted by: TopCoder - Nov-27-2017, 03:19 AM - Forum: General Coding Help - Replies (3)

[nodisplay]To make helping easy, please show a runnable example of your code with the full error text or a clear description of the problem. For impro..... More

Print this item

  Basic input() function question
Posted by: rebubula76 - Nov-27-2017, 02:46 AM - Forum: General Coding Help - Replies (2)

Hi everyone,

Started programming for the first time using Python and I've gotten through all the basics and practicing putting everything together...... More

Print this item

  bytes == str
Posted by: Skaperen - Nov-27-2017, 02:16 AM - Forum: News and Discussions - Replies (4)

bytes == str is always True on python2 and always False on python3.  so i have been using it for version testing, at least for major ..... More

Print this item

  Replacing values for specific columns in Panda data structure
Posted by: Padowan - Nov-26-2017, 11:42 PM - Forum: Data Science - Replies (1)

Hello!

Im trying to replace invalid values ( x< -3 and x >12) with 'nan's in a pandas data structure . The first two columns consist of ids and nam..... More


Attached Files

.csv   testfilex1w.csv (Size: 745 bytes / Downloads: 166)
Print this item

  Help with the string and len quiz
Posted by: destinyus - Nov-26-2017, 09:08 PM - Forum: Homework - Replies (2)

given_name = "Charlotte"
middle_names = "Hippopotamus"
family_name = "Turner"

name_length = #todo: calculate how long this name is

driving_lic..... More

Print this item

  while iterating a list, it changes all the elements at once
Posted by: henrik0706 - Nov-26-2017, 08:10 PM - Forum: General Coding Help - Replies (7)

I have a 3x3 square that is filled with None values [[None, None, None], [None, None, None], [None, None, None]]
I want to fill the first row and col..... More

Print this item

  Help with conditions in loops
Posted by: NathanWang - Nov-26-2017, 07:21 PM - Forum: Homework - Replies (2)

Given a sequence of integer numbers ending with the number 0. Determine the length of the widest fragment where all the elements are equal to each oth..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 2 hours ago nathanael SledgeNE General Codin...
  sorting a lisr of file pa... 7 hours ago Skaperen Skaperen News and Disc...
  conditional nested loops 7 hours ago Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... Yesterday, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue Yesterday, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... Yesterday, 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...
  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
Most views
  The best Prog... 578975
  Tutorial Requ... 510523
  Web Scraping ... 441993
  Newbie with P... 386015
  New Users Int... 377105
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
SledgeNE Today
nathanael Yesterday
JamesFalkner Yesterday
stevecoh1 Yesterday
Bamboo Yesterday

User Panel Messages

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