Question from the Python test

Write a Python code that returns the first element of a list if the list is not empty, otherwise return None.

Hard

Given the following code (somelist being a list): (One correct answer)

Author: Antoine BrennerStatus: PublishedQuestion passed 2008 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!