Skip to content

Instantly share code, notes, and snippets.

@AnisahTiaraPratiwi
Created March 20, 2021 10:15
Show Gist options
  • Save AnisahTiaraPratiwi/62b81fb1c6f4027602fb7ec6628cecff to your computer and use it in GitHub Desktop.
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.
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)
@willigrayjr
Copy link

This is great thank you!!

@Thanvirassif731
Copy link

Thanks bro!

@Dr95nl
Copy link

Dr95nl commented Aug 9, 2022

Very Good, Thanks You !!!!!

@ETHbarber
Copy link

Thank you so much.

@andreslr89
Copy link

obrigado!

@taiowa72
Copy link

Thank you!!!!!!!

@siddharth750
Copy link

Thankyou
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment