2022-Spring: Lab 3.7 - Intro to Python

preview_player
Показать описание
Getting Input from the User and then doing something with that Input

Using Python's built in "input" function
Outputting messages to the user

Instructions:
2. Using Python's Built-In Function (Links to an external site.)input( ), Print an message for the following input values

2.1. Variable name_input as a string
2.2. Variable age_input as an integer
2.3. Variable color_input as a string
2.4. Variable number_input as an integer
3. Immediately following each input you are to output a message that contains the value that was just input.

Example: name_input = "Hawk"
Message output: "Hello Hawk"
Use what you learned in Module 2 labs to create the proper output messages.
Рекомендации по теме