Answers for "python how to use prompt"

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
1

how to have player input in python

#variable for the input:
variable_name = input("please add your input: ")
print(variable_name)

#example
#output(Type Hi please: ")
#print(output)
#Output will be Hi if you typed hi
Posted by: Guest on May-17-2020

Code answers related to "python how to use prompt"

Python Answers by Framework

Browse Popular Code Answers by Language