Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
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