Skip to content Skip to sidebar Skip to footer
Showing posts with the label Input

Reject Or Loop Over User Input If Two Conditions Not Met

I am a real beginner with Python, although I am loving every minute of it so far. I am making a lit… Read more Reject Or Loop Over User Input If Two Conditions Not Met

Python User Must Only Enter Float Numbers

I am trying to find out how to make it so the user [only enters numbers Solution 1: I think you wa… Read more Python User Must Only Enter Float Numbers

Python - Ask For Input Multiple Times Til A Certain Input Disables It

I am trying to write a function that makes a list. The function requires user input. The function w… Read more Python - Ask For Input Multiple Times Til A Certain Input Disables It

Timed Input With Python 3 And Windows 7

I'm looking for a solution to time out a user's input after a certain time. This code shoul… Read more Timed Input With Python 3 And Windows 7

How To Use User Input To Select Row Column And Return Cell Value?

I have a pandas dataframe constructed from a csv file. I ask the user for two values, separated by… Read more How To Use User Input To Select Row Column And Return Cell Value?

How To I Create An Event For User Entry?

As part of my program I am asking the user for their name and their class (high school class). I am… Read more How To I Create An Event For User Entry?

Ignore Keyboard Input In Python While Sleeping

I'm having a code with a loop asking for some input and then sleeps for some time. The purpose … Read more Ignore Keyboard Input In Python While Sleeping

Parsing A String With Spaces From Command Line In Python

Is there a way to call my program in python and pass it a string I want it to parse without declari… Read more Parsing A String With Spaces From Command Line In Python

How To Get User Input For Multiline Lines In Python 3?

I know that the regular input function can accept single lines, but as soon as you try to write a s… Read more How To Get User Input For Multiline Lines In Python 3?

Python Form: Using Tkinter --> Run Script Based On Checked Checkboxes In Gui

I have created the following checkbox popup in Python 3.5 using tkinter (see image) with the follow… Read more Python Form: Using Tkinter --> Run Script Based On Checked Checkboxes In Gui

How Do I Gather User Numerical Input Into A List In Python?

I'm new to Python and am trying to make a simple program to calculate mean median and mode from… Read more How Do I Gather User Numerical Input Into A List In Python?

Tkinter: No Input Possible After Messagebox Is Called

I want to call a messagebox (with messagebox.showwarning) at the start of my program to inform the … Read more Tkinter: No Input Possible After Messagebox Is Called

Python Input() Takes Old Stdin Before Input() Is Called

Python3's input() seems to take old std input between two calls to input(). Is there a way to i… Read more Python Input() Takes Old Stdin Before Input() Is Called

Python: Input Validate With String Length

Ok so i need to ensure that a phone number length is correct. I came up with this but get a syntax … Read more Python: Input Validate With String Length

Are There A Way To Use While Loop Function As A List Tracker? And Mix With Filei/o?

to_do_list = [] while True: in_listed = input('item list:') if in_listed == &#… Read more Are There A Way To Use While Loop Function As A List Tracker? And Mix With Filei/o?

Nested List Doesn't Work Properly

import re def get_number(element): re_number = re.match('(\d+\.?\d*)', element) if… Read more Nested List Doesn't Work Properly

Pd.read_csv: Utf-8' Codec Can't Decode Byte 0x98 In Position 61: Invalid Start Byte

I want to download a csv file from: https://www.osha.gov/fatalities/reports/archive. Please try t… Read more Pd.read_csv: Utf-8' Codec Can't Decode Byte 0x98 In Position 61: Invalid Start Byte

Do Action While Raw_input Is Empty

I'd like to do some actions while waiting for a user input: I was thinking of: var = raw_input(… Read more Do Action While Raw_input Is Empty

How To I Create An Event For User Entry?

As part of my program I am asking the user for their name and their class (high school class). I am… Read more How To I Create An Event For User Entry?

Is There A Way To Stop Input() From Escaping \n?

So I'm trying to allow my user to input \n in a string, to designate a new line. However for so… Read more Is There A Way To Stop Input() From Escaping \n?