Created
September 1, 2018 20:32
-
-
Save AhmedHelalAhmed/cdac5395b46f718f833df4b96ffa7743 to your computer and use it in GitHub Desktop.
my try in simple algorithm
This file contains hidden or 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
| our_string=raw_input("Enter a word ") | |
| length = len(our_string) | |
| if length%2 ==0: | |
| print our_string[(length/2)-1]+our_string[length/2]; | |
| else: | |
| print our_string[length/2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment