Input Exercises
- Turn to your neighbor and discuss how we get input from a user into a variable in a python script?
- What options do we have with that function?
- What do we need to do if we want to use the input as a number?
- Write down python code to do the following:
- Get (from the keyboard) a user's first name.
- Get a user's last name
- Display the user's first and last name
- Prompt the user to enter their favorite number and store it in a variable named favoriteNum
- Double favoriteNum and display the result to the screen
- Prompt the user to enter a joke and store it in a variable name joke. Display the joke.