Skip to content

Instantly share code, notes, and snippets.

@lucaslra
Last active April 5, 2018 08:07
Show Gist options
  • Save lucaslra/42a95f4ea2384a85046f70c9a63e066e to your computer and use it in GitHub Desktop.
Save lucaslra/42a95f4ea2384a85046f70c9a63e066e to your computer and use it in GitHub Desktop.
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