Created
March 20, 2021 10:15
-
-
Save AnisahTiaraPratiwi/62b81fb1c6f4027602fb7ec6628cecff to your computer and use it in GitHub Desktop.
Use the get_seconds function to work out the amount of seconds in 2 hours and 30 minutes, then add this number to the amount of seconds in 45 minutes and 15 seconds. Then print the result.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_seconds(hours, minutes, seconds): | |
return 3600*hours + 60*minutes + seconds | |
amount_a = get_seconds(2,30,0) | |
amount_b = get_seconds(0,45,15) | |
result = amount_a + amount_b | |
print(result) |
Thanks bro!
Very Good, Thanks You !!!!!
Thank you so much.
obrigado!
Thank you!!!!!!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is great thank you!!