Tuesday, February 2, 2021

Python program for reading a string and displaying it in reverse order

 string = input("Enter a string:")

print("The", string, "in reverse order is:")

length = len(string)

for l in range(-1, (-length-1), -1):

print(string[l])

No comments:

Post a Comment

how to approach a client? or how to gain trust of a client?

So firstly take up on few free services or activity through we could develop our work and mainly our profile. That could give an idea to the...