Question: Create a main function inside the main function input your name input number of miles if the number of miles are greater than 1 0
Create a main function
inside the main function
input your name
input number of miles
if the number of miles are greater than and miles are less than
call a function named convert # you will have to create it as well
inside convert convert miles to kilometers and return the value back to main
make sure you have a variable to get the return value
print your name, miles and kilometers using f strings and a friendly message.
else the number is less than
print your name and miles using f strings and a friendly message.
Don't forget to call main before you run your program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
