taking String input from user in python

name = input("What is your name?\n") # Asks the user 'What is your name?' and stores it in the 'name' variable

print("You said your name was " + name)

number = int(input("Please select a random number:\n")) # Will get input as a number
# Will error if the value entered is not a number

# You can use any type of conversion (int(), bool(), float(), etc.) to modify your input

Here is what the above code is Doing:
1. It’s asking the user for their name and storing it in the ‘name’ variable
2. It’s asking the user to select a random number and storing it in the ‘number’ variable
3. It’s printing out the user’s name and the number they selected