Skip to content

Instantly share code, notes, and snippets.

View Ruan-dev-create's full-sized avatar

Ruan-dev-create

  • Joined Sep 24, 2025
View GitHub Profile
@Ruan-dev-create
Ruan-dev-create / gist:30f22c5f94dc531919be891999845a28
Created September 27, 2025 18:20
Código python para adivinhar um número fornecido pelo usuário
from random import randint
computador = randint(0, 50)
chance = int(input('Quantas tentativas?'))
tentativas = 0
while chance != tentativas:
print(computador)
usuario = int(input('Digite o valor: '))