Write last_char(s) that returns the last character of a non-empty string.
last_char('python')
→ 'n'last_char('a')
→ 'a'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.