Eliott Elkaim

De {}
Aller à la navigation Aller à la recherche

truc de fou

1010001 1110101 1101111 1101001 0100000 1110001 1110101 1100101 0100000 1101010 1100101 0100000 1100110 1110101 1110011 1110011 1100101 0101100 1110011 1100001 1110110 1101111 1101110 0100000 1100111 1101100 1101001 1110011 1110011 1100001 1101001 1110100 0101110


Pour combien?

# -*- coding: UTF-8 -*-

from random import randint
import time



loop = True

while loop:
    print("pour combien tu me payes un café")

    val=raw_input()
    val=int(val)
    randomval=randint(1,val)

    print("ok")
    time.sleep(1)
    print("prêts?")
    time.sleep(1)
    print("1")
    time.sleep(1)
    print("2")
    time.sleep(1)
    print("3")
    time.sleep(1)

    solu=raw_input()
    solu=int(solu)

    print(randomval)


    if solu>val or solu<1:
        print("tu triches !")
    elif solu==randomval:
        print("alleeeeez payes le kawa")
        loop = False
    else:
        print("tu t'en tire bien")
        time.sleep(1)
        print("mais sinon")