guess a number between 1 and 100

Refresh

1 weeks ago

Views

17 time

-3

I am thinking of a number from 1 to 100. You and your sibling have gotten into a fight over who gets the last brownie. Write a program that comes up with a secret number between 1 and 100 and prompts each user for an integer. Whatever number is closest to the secret number wins. Be sure that your program prints the secret number along with the winner.

i don't know how to proceed.

import random print ("The secret number is ", random.randint(1, 100))

print ("Sibling one please guess a number")

import random print ("Sibling one guessed ", random.randit(1, 100))

print ("Sibling two please guess a number")

import random print ("Sibling two guessed ", random.randit(1, 100))

0 answers