Question
The university login names are generated by using the first five letters of the students last name followed by a four-digit number. Write a Python
The university login names are generated by using the first five letters of the students last name followed by a four-digit number. Write a Python program to request from the user their last name, and a four-digit number. If the students last name is less than five letters long, use the entire last name. The program will let the user know their generated system student login.
(Do not use data structures, functions, or Python statements we have not covered in class.)
Test case: last name is "gervais" and the number entered is 1245--> the student login ID is "gerva1245"
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