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, 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
the code is as follow from datetime import datetime d... View full answer
Get step-by-step solutions from verified subject matter experts
