
Ryan S. answered 04/14/20
Tutor
5
(180)
MIT AI Alum Who Wants to Help You!
# For specific minutes and seconds
total_seconds = (42 * 60) + 42
print("There are {} seconds in 42 minutes, 42 seconds".format(total_seconds))
# More generally, for any minutes and seconds
def find_total_seconds(minutes, seconds):
return (minutes * 60) + seconds