Skip to content

Instantly share code, notes, and snippets.

@computer-tutor
Created April 25, 2020 08:58
Show Gist options
  • Save computer-tutor/372cd198245ec76704ea8b2eb8d14ba9 to your computer and use it in GitHub Desktop.
Save computer-tutor/372cd198245ec76704ea8b2eb8d14ba9 to your computer and use it in GitHub Desktop.
s = input("Enter a String:")
stack = []
for i in s:
stack.append(i)
l=len(stack)
for i in range(l):
print(stack.pop()*2,end="")
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment