Given a name in the formatlastname, firstnamewhere there is exactly one comma and exactly one space transform
Fantastic news! We've Found the answer you've been seeking!
Question:
Given a name in the formatlastname, firstnamewhere there is exactly one comma and exactly one space
transform the name into the format
first_initial. lastname
where
* first_inital and lastname are both capitalized
* there is exactly one period and space following the first_initial
For example, given s =
ghandi, mahatma
the output will be
M. Ghandi
Use the input statement in the skeleton code:
name = input("Input a name: ")
Related Book For
Computer Networking A Top-Down Approach
ISBN: 978-0136079675
5th edition
Authors: James F. Kurose, Keith W. Ross
Posted Date: