# guss_num
import random
start = input ('請輸入亂數開始的數字 : ')
end = input('請輸入亂數結束的數字 : ')                      
start = int (start)
end = int (end)
r = random.randint(start , end)
count = 0
while True:
    count = count + 1  
    num = input ('請猜數字 ：')
    num = int (num)

    if num == r :
        print ('你猜對了  ！！')
        print ('這是你猜的第' , count , '次')
        break
    elif num > r :
        print ('比答案大 ！！')
    elif num < r :
        print ('比答案小 ！')
    print ('這是你猜的第' , count , '次')

          