Last active
October 28, 2015 14:56
-
-
Save adrienbrunet/518bbcd9d28c7d58d565 to your computer and use it in GitHub Desktop.
Exo1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
tab = [random.randint(0, 100) for i in range(50)] | |
for i in range(5, 49, 5): | |
print(tab[i]) | |
# directement sans boucle | |
print(tab[5::5]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment