Question: Sometimes we need to get input directly from a user in order to perform our computing. The Python function input takes a string as an
Sometimes we need to get input directly from a user in order to perform our computing. The Python function inputtakes a string as an argument and displays it as a prompt in the shell. It then waits for the user to type something, followed by hitting the enter key. The line typed by the user is treated as a string, so if we want to use it as a number, we must convert its type. To test these concepts, write a program that does the following:
1 Ask the user to input their full name
2 Asks the user to input their year of birth
3 Print a message to the shell with the users full name and age. For example: Your name is XXX and you are YYY years old
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
