Exercise: Get last character from string
Here, we try to get the last character from a string using square brackets and an index number. Again, there is a small mistake. Fix the code and run it again. Remember that you can also use negative index numbers.
Premium
Python
Setting up Python environment...
Output