DEV Community

Discussion on: Solving the Problem Sets of CS50's Introduction to Programming with Python — One at a Time: Problem Set 4

Collapse
 
heyandre profile image
Andre Castro

Now I'm stuck in the game... get all green checks except these 2:

:( game.py outputs "Just right!" when guess is correct
Did not find "Just right!" in "Too large!\r\n..."
:( game.py outputs "Too small!" when guess is too small
Did not find "Too small!" in "Too large!\r\n..."

what I did was import random
use randint between 1, 100 and store in a variable

then a while true loop
with try except and and if else statement

Collapse
 
heyandre profile image
Andre Castro

Never mind...I fixed it!