Question: PYHTON Write a short program that inputs the user rst and last name and output a username that is created as follows: If the last
PYHTON
Write a short program that inputs the user rst and last name and output a username that is created as follows:
If the last name has less than 5 letters, then the user name consists of the rst and last letter of the rst name followed by the last name (for example John Doe will result in the user name 'JnDoe'). Otherwise the user name consists of the rst letter of the rst name followed by the last name (for example Pat Smith will result in the user name 'PSmith').
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
