3 nouveaux défis

This commit is contained in:
2022-10-11 14:10:34 +02:00
parent b77a2e4e47
commit 5d8d6dd6ee
3 changed files with 87 additions and 0 deletions

23
Hen Llinge obfusqué.py Normal file
View File

@@ -0,0 +1,23 @@
message = "GwboOBynaABlnNecCigGdd"
message = "MzZfiIFmMpPizwWZkbByYKfFjJkKusSbBUplLqisSlLdDIQPnrRnuUuUsgkKfFdDGSxhHmMmMXgGjaAJpzZpeEPPnNpncmMinNIwpPWfFcCCNPnqQxXNeqQhHraefFEdkKDpmMPARaqQqQikjJKmMoOIrRpPoOnNmyYMfFxXkoOsSKzZwefFEWvV yYyYjJpPEviIzeExXZxgGwWjkKJXmMxXVvVkqQoOagxXGeEAoOpPtTntTNnNKjtTxXwWgGJunjJdDoONUspPSutTtgGTUhHqlLrRQmuUjJnwfFWNxXpzZPyYlLzZMoOnweEfFWkwpPjJWnNxXKyYjJyYfFuUicbBCcCpuUoOPoeEoOsgwWsaAsSSjJGkKeEnNSpPvVsmyYMoOsSSOxXdyqQzZmMmMYnNDd"
found = False
at_least_one = True
res = ""
while at_least_one:
at_least_one = False
for i in range(len(message)):
if found:
#this is the upper case letter, the 2nd letter
found = False
elif i<len(message)-1 and message[i].islower() and message[i].upper() == message[i+1] and not found:
#this is the mower case letter followed by the same letter in upper case
found = True
at_least_one = True
elif not found:
res = res + message[i]
else:
found = False
print(res)
message = res
res = ""