Created
April 25, 2020 08:58
-
-
Save computer-tutor/372cd198245ec76704ea8b2eb8d14ba9 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
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