0

How do you make words backwards?

How do you make words backwards?

26th Mar 2020, 3:48 PM
Liam ALLEN
Liam ALLEN - avatar
2 Antworten
0
Use slicing. For example words="Backwards" print(words[::-1]) #Output sdrawkcaB
26th Mar 2020, 3:55 PM
Taranjeet
Taranjeet - avatar
0
try slicing 'word[::-1]'. you can also use the well known reversed fonction.
26th Mar 2020, 3:57 PM
John Robotane
John Robotane - avatar