Write last_char(s) that returns the last character of a non-empty string.
last_char('pandas')
→ 's'last_char('x')
→ 'x'Submit runs 4 tests, including hidden edge cases.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.