I hereby claim:
- I am mahyess on github.
- I am maheshprajapati (https://keybase.io/maheshprajapati) on keybase.
- I have a public key ASCALu0pVbOG80tvJkPFYra0wUNTHZqrWi9rOUUjuSUAgQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
'''Randomly generate a 4-digit number. Ask the user to guess a 4-digit number. | |
For every digit that the user guesses correctly in the correct place, they have a “cow”. | |
For every digit the user guesses correctly in the wrong place is a “bull.” | |
Every time the user makes a guess, tell them how many “cows” and “bulls” they have. | |
Once the user guesses the correct number, the game is over.''' | |
import random | |
#Computer chooses random number, and we turn that number into a string, which we will need later. | |
def guess(): |