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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!