Les coffres-forts Sécure-IT
Rungekutta
16.3K views
Afficher un mot de bienvenue
On sait maintenant que print( )
permet d'afficher un message. Utilisez cette instruction pour faire afficher à votre programme la phrase suivante tout de suite après le choix de la combinaison :
Bienvenue au CTF (Coffre-Trop-Fort). Confiez-moi tous vos biens!
Faites afficher «Bienvenue au CTF (Coffre-Trop-Fort). Confiez-moi tous vos biens!»)
1
2
3
4
5
from random import randint
# la combinaison est un nombre entre 0 et 9.
combinaison = randint(100, 999)
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.