02-Get User Input as String.py

Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...

Code Snippet

#Getting user input is key....what is a program without user interaction!?

#to get string input (which is by default) just do this:

name=input("What is your name?")
print("Nice to meet you,", name)                    

Try it yourself