im new to python or programming in general so this might be simple but im stuck!
It would be great if anyone could help me! ^^
I want to be able to do a piece of code that does this:
You want the modulus function. This finds the remainder when dividing by the specified number. In this case, if the time was 25 hours, you would be left with 1. Or if the time was 30 hours for example, you would be left with six.
To implement this you would do:
print("Your plane leaves at: ", i % 24)
Note that if the time is a multiple of 24 though, it will print 0.