cours_progra/q1/renforcement/entrainement_0311/ex3.py
2023-02-15 13:40:50 +01:00

8 lines
171 B
Python

def check_ticket(ticket):
while(:)
tosumuup = [int(i)for i in list(ticket)]
return sum(tosumuup)
if __name__ == "__main__":
print(check_ticket('999999'))