Input Exercises

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