Skip to content

Instantly share code, notes, and snippets.

@Xotabu4
Created January 31, 2016 21:39
Show Gist options
  • Select an option

  • Save Xotabu4/1816fadbb8883abc240f to your computer and use it in GitHub Desktop.

Select an option

Save Xotabu4/1816fadbb8883abc240f to your computer and use it in GitHub Desktop.
while True:
userinput = input('Please, type any word. It will be reduced by 2 characters from begin and from end: ')
if userinput:
print('Result is:')
print(userinput[2:-2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment