pyassistant

Second Smallest Element

Given a list of integers, write a function to return the second smallest element in the list.

Example:

Input:
[4, 2, 7, 1, 5]
Output:
2

Make sure you return your solution, don't print!

AI

Bot

Trying to solve my challenge? Ask if you must, or press the purple button so I can analyze your code.