Answers for "python print input"

17

python input

# The function 'input()' asks the user for input
myName = input()
Posted by: Guest on February-21-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
0

print input in python

# Take input from user and store it as a variable. E.g. I store the input as 'user_inp'
user_inp = input("Enter anything you want: ")

#Now you can print it by using print function
print("You entered ", user_inp)
# If you don't want "You entered " you can simply write as:- print(user_inp)
Posted by: Guest on March-10-2021
1

python text input

name = input("Input message here")
Posted by: Guest on February-11-2020

Python Answers by Framework

Browse Popular Code Answers by Language