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.
buran write Jan-21-2021, 10:05 AM:
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
And please, fix the indentation
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
And please, fix the indentation