1.

Write a Python program to read a string and display it in reverse order​

Answer»

Strings can be REVERSED using slicing. To reverse a string, we SIMPLY create a slice that starts with the length of the string, and ends at index 0. The slice statement means start at string length, end at position 0, MOVE with the step -1 (or one step backward).Explanation:Hope this HELPS U ❣Gummonie ☺Pls Flw me ☹Give me thnks ☹✌ITZ AbUsiNg QuEeN ✌



Discussion

No Comment Found