Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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