Question
Step 1 Write a Python assignment statement that uses input() containing a prompt that asks the user to type their name and assigns the name
Step 1
Write a Python assignment statement that uses input() containing a prompt that asks the user to type their name and assigns the name typed to a variable called name.
Step 2
Write a Python print statement to print a message to the user that says hello and uses the name they typed in
step 3
Write a Python assignment statement that inputs an integer and stores it in a variable called num1, make sure to prompt the user to type a number, and make sure to use the int() function as shown in the book to turn the input into an integer.
Write another Python statement exactly like step 3, but store the number input in a variable called num2.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started