btw, this is to guess a person's secret number.

- Code: Select all
`x=50`

asd=0

print('pick a number between 1 and 100')

print('h if high, l if low, c if correct')

while asd==0:

z=input('is '+guess+' you number?')

if z == 'c'

asd=1

elif z=='h':

guess=guess-(0.5*guess)

elif z=='l'

guess=guess*0.5+guess

else:

print("sorry try again")

print('I got it')