I want to make a summation of the collected data from a while loop because I want to calculate Youtube video duration to divide them into days. I want to make something which collects the final answer from each loop and makes a summation process of them. How can I do that?
My code is:
while True:
    def youtube_calculater(x):
        return x * 60
    a = youtube_calculater(float(input("enter minutes: ")))
    def sum_operation(y):
        return a + y
    b = sum_operation(float(input("enter seconds: ")))
    def final_operation(n):
        return n / 60
    s = final_operation(b)
    print(s)
 
     
    