Answers for "how to take user input python"

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

python print user input

name = input("Hi! What’s your name ? ")
print("Nice to meet you " + name + "!")

age = input("How old are you ? ")

print("So, you are already " + str(age) + " years old, " + name + " !")
Posted by: Guest on May-13-2021
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

how to get user input python

x = input("enter prompt here: ")
Posted by: Guest on October-31-2020
0

python 2.7 get user input

# Python 2

txt = raw_input("Type something to test this out: ")
print "Is this what you just said?", txt
Posted by: Guest on December-18-2019

Code answers related to "how to take user input python"

Python Answers by Framework

Browse Popular Code Answers by Language