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

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!