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

How To Continuously Prompt For User Input?

I'm writing a function that prompts for input and then returns different results based on the i… Read more How To Continuously Prompt For User Input?

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

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 Read A List Which Is In List Format In A Text File In Python

I have this list in a txt file: [1, 'hello', {'Name': 'Tom'}, [2, 3, 'h… Read more How To Read A List Which Is In List Format In A Text File In Python

Reading Stdout From Xinput Test In Python

I am trying to stream the output of xinput into my python program, however my program just waits an… Read more Reading Stdout From Xinput Test In Python

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

How Do I Take Input In The Date Time Format?

I have written a code which take start_date and end_date from user but it is throwing an error. Fol… Read more How Do I Take Input In The Date Time Format?

Adding Multiple Elements To A List In Python

I am trying to write something in Python that will be like a piano. Each number that the user enter… Read more Adding Multiple Elements To A List In Python

Python: Input Function Not Working As Expected

Say that the SECRET_NUMBER = 77. I want the function to keep prompting the user until the secret nu… Read more Python: Input Function Not Working As Expected

Prevent Input() From Being Anything But Alphabet Characters

I am attempting to make a program for the sake of self-knowledge. I want to ask the user what their… Read more Prevent Input() From Being Anything But Alphabet Characters

Python Continue From Input With The Space Key

I'm making a typing speed test game and trying to make it so that when a user is typing into a … Read more Python Continue From Input With The Space Key

Python Input Error

I'm running python 2.7.10 on Mac OSX 10.9.5m and it's not working. Here's the code: # Y… Read more Python Input Error

Performing Infinite Loop While Awaiting Input

I have a little project I'm working on, it's fairly simple so I'm hoping someone can he… Read more Performing Infinite Loop While Awaiting Input

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 Writelines Skips First Line Of Raw_input

I am writing a simple journal program with python. I used sys.stdin.readlines() so the user could p… Read more Python Writelines Skips First Line Of Raw_input

Python: How Can I Read In The Characters From A Line In A File And Convert Them To Floats And Strs, Depending On If They Are Numbers Or Letters?

I have a file that looks like: 1 1 C C 1.9873 2.347 3.88776 1 2 C Si 4.887 9.009 1.21 I would lik… Read more Python: How Can I Read In The Characters From A Line In A File And Convert Them To Floats And Strs, Depending On If They Are Numbers Or Letters?

Handling Errors Using A Extra Function

Is it possible to make error handling functions so that I don't have to make error handling whe… Read more Handling Errors Using A Extra Function

Python: Accept User Input At Any Time

I am creating a unit that will do a number of things, one of them counting cycles of a machine. Wh… Read more Python: Accept User Input At Any Time

Caesar Cipher In Python

The error which i am getting is Traceback (most recent call last): File 'imp.py', line 52… Read more Caesar Cipher In Python

Accessing A Class Instance's Attributes Using User Input

So I have this code: class vehicle(object): def __init__(self): self.age = 6 se… Read more Accessing A Class Instance's Attributes Using User Input