def pocket(aim): count = 0 biskets = 1 while biskets < aim: count += 1 biskets = 2 ** count else: print("{}回ポケットを叩いてください".format(count))