>>266
switchはないけど、breakならあるよ

>>249の同値な書き換え

def a():
  x=3**960-1
  i=0
  while 1:
    if x%2 != 0: break
    x/=2
    i+=1
  return i