Question
Write python code Write a program that prompts for the user's first name and last name (separately). Then print a string composed of the first
Write python code
Write a program that prompts for the user's first name and last name (separately).
Then print a string composed of the first letter of the user's first name followed by the first five characters of the user's last name followed by a random number in the range 10 to 99.
Ensure that your program does not fail if the user enters a last name that is less than 5 letters long.
Such algorithms are sometimes used to generate usernames for new computer accounts.
If the user were to enter John Smith, then your program would generate an username in the range jsmith10 to jsmith99.
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