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

How To Read Keyboard Input One Char At A Time With A Timer With Python

I am trying to figure out how to create a little Python script that can take the following paramete… Read more How To Read Keyboard Input One Char At A Time With A Timer With Python

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?

Why Python Does Not See All The Rows In A File?

I count number of rows (lines) in a file using Python in the following method: n = 0 for line in fi… Read more Why Python Does Not See All The Rows In A File?

How To Print The Input As An Integer, Float Or String In Python

The purpose of my code is for the output to give the number and the type of the input. For instance… Read more How To Print The Input As An Integer, Float Or String In Python

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

Building A Built-in Text Field For Turtle, While Statement Doesn't Work

I have built a text field module that has one problem: why does Python IDLE not work for while...br… Read more Building A Built-in Text Field For Turtle, While Statement Doesn't Work

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

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

Check For Repetition In Input (python)

How do i check for a repeating input(letter) for a hangman game? Example: word is apple input is Gu… Read more Check For Repetition In Input (python)

How Can I Make Text Bold In Python?

I want to be able to change the text to bold in Python. Is there a way to do that? I have been able… Read more How Can I Make Text Bold In Python?

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

Why Won't The While Loop Continue And Stop After A User Question?

questionnumber=0 color=('Red') userask=input('What color of the rainbow am I thinking o… Read more Why Won't The While Loop Continue And Stop After A User Question?

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

Converting List Of String To List Of Integer

How do I convert a space separated integer input into a list of integers? Example input: list1 = li… Read more Converting List Of String To List Of Integer

Selelnium - Python | Date Of Birth Fields By Using Label

I would like to create GENERIC python code which will fill in the day, month and year to the correc… Read more Selelnium - Python | Date Of Birth Fields By Using Label

User Input Validation In Pyqt5 And Python

This is a two part question about input validation with one specific and another more general compo… Read more User Input Validation In Pyqt5 And Python

How To Sum Numbers From Input?

I am working on the following problem. Write a program that continually prompts for positive intege… Read more How To Sum Numbers From Input?

How To Read An Array Of Integers From Single Line Of Input In Python3

I want to read an array of integers from single line of input in python3. For example: Read this ar… Read more How To Read An Array Of Integers From Single Line Of Input In Python3

Python 3 - Unittest With Multiple Inputs And Print Statement Using Mocking

I'm studying Python and a few weeks ago I had created a game which the user needs to guess the … Read more Python 3 - Unittest With Multiple Inputs And Print Statement Using Mocking