I am working on a script that takes user input and reverses the entire input, for example, if the user " London ", then it will be printed as" nodnell ". I am currently able to reverse a certain number of characters, but I am not able to reverse the whole string. You can reverse it with a slicing syntax:
s =
Enter a string: London nodnoL
No comments:
Post a Comment