fr
fr

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 2129 times
Edit
0
Community Evaluations
developer avatar
Auteur anonyme
16/05/2023
Le code ne se charge pas de mon côté
developer avatar
Vincent Cotro
05/06/2023
Bonjour, si possible peux-tu envoyer un screenshot à devs@welovedevs.com ? Nous n'avons pas réussi à reproduire le bug !