5th day of python challenges 80-87
This commit is contained in:
9
challenges80-87/challenge-087.py
Normal file
9
challenges80-87/challenge-087.py
Normal 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]
|
Reference in New Issue
Block a user