Westonci.ca is the Q&A platform that connects you with experts who provide accurate and detailed answers. Join our Q&A platform to connect with experts dedicated to providing precise answers to your questions in different areas. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

write a function that takes a list and an integer n as parameters and returns the nth item in the list. ex. [1,2,3,4] 2 gives 3 and [1,2,3,4] 1 gives 2