To work on a program using input, output, and variables.
For this lab, you will write a program that asks the user a few questions, saves the answers in variables, and then gives them output.
You should ask them the following:
Then give them a greeting based on their answers.
Next ask them another question: what they like to do. Then give them another line of output using that answer too.
Below is an example run of this program:
What is your name? Ian Where are you from? Florida Hello Ian from Florida. What's something you like to do? play guitar Have fun next time you play guitar!
After you write your program, be sure to test it. Remember that the program should work for any name/location/hobby as input, so be sure to test it with different answers to make sure it still works!
When you are finished, please submit the .py file for the lab on Canvas. To do so, you'll need to navigate to where you saved the file on your computer.
Copyright © 2024 Ian Finlayson | Licensed under a Creative Commons BY-NC-SA 4.0 License.