Created
June 13, 2020 09:58
-
-
Save keyboard-slayer/2138cbd0e3897aa46e0cb7f85108c273 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
result = "" | |
todumb = input("Le texte: ") | |
for index, letter in enumerate(todumb): | |
if index % 2 == 1: | |
result += letter.upper() | |
else: | |
result += letter.lower() | |
print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment