Initial release

This commit is contained in:
Francois JUMELLE
2021-05-03 22:32:40 +02:00
commit 20526d93c8
928 changed files with 452368 additions and 0 deletions

15
Mon beau miroir... .py Normal file
View File

@@ -0,0 +1,15 @@
liste = (396, 294, 290, 861, 481, 194, 570, 463, 265, 935)
def palindrome(value):
ope = 0
while str(value) != str(value)[::-1]:
value = value + int(str(value)[::-1])
ope += 1
return [value, ope]
res = list()
for i in liste:
res.append(palindrome(i))
print(res)