Question: Write a program to prompt the user to input a string, which consists of a student's full name and birth year, then print out

Write a program to prompt the user to input a string, which consists of a student's full name and birth year,

Write a program to prompt the user to input a string, which consists of a student's full name and birth year, then print out his/her first name, last name and current age with exact format as below: Sample Run: Enter your info: AN THUY THI NGUYN 2004 Result: AN NGUYEN 18-year-old Note: The full name is inputted in the order of first name - middle name (if available) - last name, and people may have none or many words in the middle name (e.g. An Nguyen, An Thi Thuy Nguyen). The user may input many whitespaces before and after each words.

Step by Step Solution

3.46 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

the code is as follow from datetime import datetime d... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!