Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
the code is as follow from datetime import datetime d...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started