deletions_ammount = 0
penalty_time = 0
n = 1
while n != 0:
n = int(input())
deletions_ammount += 1
penalty_time += n
deletions_ammount -= 1
print("Удалений: %s\nВремя удалений: %s" % (deletions_ammount, penalty_time))
Объяснение:
deletions_ammount = 0
penalty_time = 0
n = 1
while n != 0:
n = int(input())
deletions_ammount += 1
penalty_time += n
deletions_ammount -= 1
print("Удалений: %s\nВремя удалений: %s" % (deletions_ammount, penalty_time))
Объяснение: