chap1_act_5_1.py

created by 3-0-snt2de-2019

created on August 14, 2019

268 Bytes


from random import *
x = randint(1,100)
e = int(input("Devine ? "))
n = 1
while e != x:
    if e < x:
        print("Plus grand")
    else:
        print("Plus petit")
    e = int(input("Essai ? "))
    n = n + 1
print("Gagné en", n, "essais.")