cours_progra/q1/renforcement/entrainement_0311/ex3.py

8 lines
171 B
Python
Raw Normal View History

2022-11-09 16:22:14 +01:00
def check_ticket(ticket):
while(:)
tosumuup = [int(i)for i in list(ticket)]
return sum(tosumuup)
if __name__ == "__main__":
print(check_ticket('999999'))