repl.it
@KianAlford/

cows and bulls

Python

cowls bulls

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import random

random_number = [1 , 1]
num = random.choice(random_number)

cows = 0
bulls = 0

guess = input('What is the four digit number: ')
if guess == num:
  bulls += 1
  print('that is not correct.')
elif guess == num:
  cows += 1
  print('that is the four digit number!')
  print(cows, bulls)
  guess = input('What is the four digit number: ')
Fetching token
?