Programme pour deviner un nombre

Posted on Dim 13 octobre 2024 in programmation

Ce programme ultra simple n'en est pas moins un jeu vidéo.

from sys import exit
from random import randint

TRIES_NUMBRER = 5

pseudo = input("Hello, put your name: ")
print("So your name is " + pseudo + "!")
print("Nice to meet you!")

number_to_guess = randint(1,20)

print("{}, You have {} tries to guess the number …

Continue reading