Last active
April 5, 2018 08:07
-
-
Save lucaslra/42a95f4ea2384a85046f70c9a63e066e to your computer and use it in GitHub Desktop.
This file contains 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
from sys import argv | |
try: | |
word = argv[1] | |
for c in argv[1]: | |
print(word) | |
word = word[:-1] | |
for c in argv[1]: | |
word += c | |
print(word) | |
except: | |
print('Palavra Invalida') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment