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 1741 times
Edit
0
Community Evaluations
developer avatar
Auteur anonyme
16/05/2023
Le code ne se charge pas de mon cÎté
developer avatar
Auteur anonyme
05/06/2023
Bonjour, si possible peux-tu envoyer un screenshot Ă  [email protected] ? Nous n'avons pas rĂ©ussi Ă  reproduire le bug !