I want to calculate the total penalty received (save data in list) for a particular month but I don't know how to do it. Can anyone please help T.T : bookcode = str(input('Enter Book Code To Return: '))

day = int(input('Enter Days Borrowed:'))

if(0 <= day <= 5):

        print('You have returned your book successfully =)')
else:

    penalty = (day-5) * 1
    print('You have to pay RM%.2f ,%penalty)


    



print('\nYou have to pay RM','%.2f'%penalty)