Posts by Patrícia • 9 points
1 post
-
0
votes1
answer131
viewsQ: Python Kick Game. Does anyone have any hints how to reduce or improve this code without using functions?
from random import randint from time import sleep valor = randint(1, 20) tentativa = 0 chute = 0 print() while chute != valor: chute = int(input('\nChute um número:…