180k views
10 votes
Python code for converting between minutes to seconds. For example 5 minutes= 300 seconds. please help me with this

User Algold
by
5.9k points

1 Answer

6 votes

Answer:

def print _ seconds(hours, minutes, seconds):

seconds += 3600 * hours + 60 * minutes

print(seconds)

Step-by-step explanation:

Hope this help's.

User Swinn
by
5.9k points