1#Collecting The Input As A Variable:#
2name = input('Please enter your name: ')
3#Printing The Variable:#
4print(name)
5#Checking The Variable And Printing Accordingly:#
6if name == 'Joe':
7 print('Joe Mama')
1name = input("What is your name?\n") # Asks the user 'What is your name?' and stores it in the 'name' variable
2
3print("You said your name was " + name)
4
5number = int(input("Please select a random number:\n")) # Will get input as a number
6# Will error if the value entered is not a number
7
8# You can use any type of conversion (int(), bool(), float(), etc.) to modify your input
9
10
1name = input("What is your name: ")
2
3print(name)
4
5if name == "Jeff":
6 print("My name Jeff")
1name = input("Enter your name: ")
2
3#Printing the variable (name)
4print("hello",name)
1# Input statements are used to ask questions to the user
2
3text = input("Enter your name: ")
4
5# printing the variabale
6print(text)