Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DNA Databases

Authors: Stefan Kiesbye

1st Edition

0737758910, 978-0737758917

More Books

Students also viewed these Databases questions

Question

What are the objectives of Human resource planning ?

Answered: 1 week ago

Question

Explain the process of Human Resource Planning.

Answered: 1 week ago