Guest User

Untitled

a guest
Jan 24th, 2020
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from random import*
  2.  
  3. def PrixAleatoire():
  4. p=randint(10000,50000)
  5.  
  6.  
  7. def JeuUser(P):
  8. fin=False
  9. k=0
  10. while fin==False:
  11. k+=1
  12. rep=int(input("Proposez un prix"))
  13. if rep<p:
  14. print(rep," , C'est plus")
  15. elif rep>p:
  16. print(rep," ? C'est moins")
  17. else:
  18. print(rep, "? Bravo c'est gagné !")
  19. fin==True
  20. return(k)
  21.  
  22.  
  23. def JeuOrdi(p):
RAW Paste Data