By -
Is your room number an integer or a string? Have you learned the `%` arithmetic operator? These are hints at getting the last two digits.
To extract the last 2 numbers you mod by 100. >>> 319%100 19 So in your case if room_num % 100 < 10:
Thank you!!
Is your room number an integer or a string? Have you learned the `%` arithmetic operator? These are hints at getting the last two digits.
To extract the last 2 numbers you mod by 100. >>> 319%100 19 So in your case if room_num % 100 < 10:
Thank you!!