5th day of python challenges 80-87

This commit is contained in:
abd.shallal
2019-07-22 15:22:11 +03:00
parent 6a11f68f12
commit d4902e6ad1
10 changed files with 196 additions and 49 deletions

View File

@@ -0,0 +1,9 @@
string = str(input('Enter a word : '))
length = len(string)
count = 1
for i in string:
position = length - count
letter = string[position]
print(letter)
count = count + 1
# easy way is type string[::-1]