you need to repeat what lines 5-11 do as long as the guess is incorrect. Use
line 6 and line 8 - you want to use
while
loop.line 6 and line 8 - you want to use
if
like you do in line 10, not while
, or you can combine 6, 8 and 10 in a single if/elif
block.