Jan-21-2021, 10:04 AM
I have an assignement to make app that list songs lenght in seconds and then in minutes, but i don't know how to do it.
Here is what i have but obviously it doesn't work:
Here is what i have but obviously it doesn't work:
n=int(Input('Enter number of songs: ')) sum=0 for i in range(1,n): t=int(Input('Enter song lenght: ')) sum=sum+t print(sum//60) print(sum%60)Any help is appreciated.