Jan-21-2021, 12:43 PM
(This post was last modified: Jan-21-2021, 12:43 PM by Aspire2Inspire.)
Is the below what you are after? Run the script and let me know!
This isn't hard stuff really, you should try and learn it because it's really useful, they wouldn't set you stuff like this if it wasn't important to your learning.
This isn't hard stuff really, you should try and learn it because it's really useful, they wouldn't set you stuff like this if it wasn't important to your learning.
n = int(input('Enter number of songs: ')) # Quantity of Songs songs = [] for i in range(1, n + 1): t = int(input('Enter song length: ')) # Song time in seconds print(f"Song {i} ->", "Minutes:", t // 60, "Seconds:", t % 60)