Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- import os
- n = int(randint(1, 100))
- c = 0
- p = 0
- t = 0
- while p != n:
- p = int(input('Seu palpite de 1 à 100: '))
- t += 1
- if p == n:
- print('ACERTOU! Placar: %i ' % t)
- elif p < n:
- print('Chute um valor MAIOR')
- else:
- print('Chute um valor MENOR')
- if t % 5 == 0 :
- os.system('clear')
- else:
- print('PENSE BEM!')
- print('Fim de jogo!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement