Input and Output

So far, we have only ever assigned variables directly within the code itself, however, we can also set variables by prompting the user for input by using the input() function.

If we code the following, we can see this function in action. The input() function prints out a prompt, and then returns whatever the user types into the code. Give this a try in Visual Studio!

food = input("What's your favorite food? ")
print("Gross. You like " + food + "?")

After giving this a shot, we only have one more element we need to introduce before we can get started on todays project, and that is to go over loops