Write first_n(s, n) that returns the first n characters of s (the whole string if it is shorter).
first_n('python', 3)
→ 'pyt'first_n('hi', 5)
→ 'hi'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.