Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Licence CC BY-NC-ND Thierry Parmentelat & Arnaud Legout Inria - UCA

Exercice - niveau basique

Vous devez écrire une fonction laccess qui prend en argument une liste, et qui retourne :

from corrections.exo_laccess import exo_laccess
exo_laccess.example()
Loading...
# écrivez votre code ici
def laccess(liste):
    return "votre code"
# pour le corriger
exo_laccess.correction(laccess)
Loading...

Une fois que votre code fonctionne, vous pouvez regarder si par hasard il marcherait aussi avec des chaînes :

from corrections.exo_laccess import exo_laccess_strings
exo_laccess_strings.correction(laccess)
Loading...