3 nouveaux défis
This commit is contained in:
23
Hen Llinge obfusqué.py
Normal file
23
Hen Llinge obfusqué.py
Normal 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 = ""
|
||||
Reference in New Issue
Block a user