def somme_chiffres(n): if n ...: return ... return n ... 10 + ... def residu(n): while n ...: n = ... return ...