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

SAP Tcodes

zme27 - Automatic STO creation mmbe - Stock Overview, Material, Batch me51n - Create Purchase Requisition me21n - Create Purchase Order me59...