Time=int(input())
pp=[300, 60, 10]
result=[]
count=0
if Time%10==0:
for i in range(pp):
count+=Time//pp
Time=Time%pp
elif Time==0:
Break # Why is there an error when break comes out here?
print(count)
Break works in a loop.
while 1:
break
for i in range(3):
break
© 2024 OneMinuteCode. All rights reserved.