Answers for "how to ask a user for input in python"

2

how to ask for input in python

variable = input("text before input")
# saves user input to "variable"
Posted by: Guest on August-15-2021
10

python how to use input

#basic user handling for begginers

x = input("your question here") # when someone types something here that answer will be saved and be used for later

# for example 
print(x)
Posted by: Guest on March-25-2020
5

python user input

input('ENter question here')
Posted by: Guest on December-31-2019
3

how to accept input from the user in python

# if you want to ask the user to input anything, use the keyword "input"

# example

a = input("What is your name") # the user will be prompted to answer the question 

print(a) # this allows the user to actaully see the question or anything
Posted by: Guest on June-13-2020
0

python user input

var = raw_input()
# OR
var = input()

""" raw_input can only be a string, but input can be a string, 
integer, or variable. """
Posted by: Guest on February-25-2021

Code answers related to "how to ask a user for input in python"

Python Answers by Framework

Browse Popular Code Answers by Language