A voir également:
- Python nombre aléatoire entre 1 et 100
- Ce programme est écrit en python. il construit un mot secret dans une variable mais il ne l'affiche pas. modifiez-le pour qu'il affiche le mot secret. exécutez-le. quel est ce mot secret ? ✓ - Forum Python
- Python est introuvable. exúcutez sans argument pour procúder ó l - Forum Python
- En raison d'un nombre important d'échec de connexion snapchat ✓ - Forum Snapchat
- \R python ✓ - Forum Python
- Citizen code python - Guide
2 réponses
sebsauvage
Messages postés
32893
Date d'inscription
mercredi 29 août 2001
Statut
Modérateur
Dernière intervention
21 octobre 2019
15 655
18 nov. 2004 à 13:22
18 nov. 2004 à 13:22
Et hop !
Et pour les autres fonctions de random:
http://docs.python.org/lib/module-random.html
import random r = random.randint(1,100)
Et pour les autres fonctions de random:
http://docs.python.org/lib/module-random.html
9 mars 2018 à 19:36
Sur repl.it il faut faire :
import random
random.randint(1,100)
:)