Advertisement
JiiCeii

plus ou moins minimal

Mar 5th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import random
  2. n, n_user = random.randint(1, 100), 0
  3.  
  4. while(n_user != n):
  5.     n_user = int(input("Quel est le nombre mystere ? "))
  6.     print((n_user < n) and "Plus grand" or ((n_user > n) and "Plus Petit" or "Bravo !"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement