New course! Every coder should learn Generative AI!
Try a free lesson+ 2
How can i print the last letter of a word, slicing method, while the letters of the word is unknown?
2 Answers
+ 6
"yourword"[-1]
+ 3
Why do you need to use modulo operator when slicing is more suitable for the job?