Translate to Traditional Chinese (δΈ­ζ–‡):

<< Prev   🏠 A B C D E F G Next >>


B.py - Convert Minutes to Seconds

Write a Python program that asks the user enter an integer minutes as the number of minutes.
Your program should convert the given minutes into seconds and display the result on the screen, as shown in the examples below.
As you already know, a minute has 60 seconds.

Hint: To enter an integer number, use minutes = int (input("Enter minutes: "))


Example 1:
Enter minutes: 10
Convert to seconds: 600

Example 2:
Enter minutes: 60
Convert to seconds: 3600


<< Prev   🏠 A B C D E F G    Next >>