x를 입력받으면 a와 b 사이의 숫자를 리턴하는 함수임.


def f(x):

  if a<=x<=b: return x

  if x<a: return a

  return b;


이런 내장함수 뭐임?