top of page

Projet 2 : Popularité d'une page web

Instructions Python utilisées

import random         Utilisation de la bibliothèque random

random.choice(L)          Choisit un nombre au hasard dans la liste L

random.random( )         Renvoie un nombre aléatoire compris entre 0 et 1

random.shuffle(L)         Modifie aléatoirement l'ordre de la liste L

Programme final

bottom of page