Oct-28-2020, 06:28 PM
Proposals don't handle if there are any spaces. @Askic response assumes you have covered slices of strings (that colon format), where I am thinking they are trying to teach you loops. Have you covered slices?
Suggest:
get your inputs like you are doing, but would not bother converting to an int
Get the first 5 characters of the last name, using slice notation if that is allowed
Remove a space if present (hint - look at the replace function and replace with '')
concatenate the result with the school_id.
print
Suggest:
get your inputs like you are doing, but would not bother converting to an int
Get the first 5 characters of the last name, using slice notation if that is allowed
Remove a space if present (hint - look at the replace function and replace with '')
concatenate the result with the school_id.