[Python] 함수 - arguments
Positional arguments 함수 호출 시 인수 순서대로 매개변수에 값을 전달. (위치 기반) # positional def checkout(name, age, birth): print(f'{name}, {age}, {birth}') checkout('kim', 99, '2020/07/17') 첫 번째 인수 'kim' 은 name 매개변수에 전달 두 번째 인수 99 는 age 매개변수에 전달 세 번째 인수 '2020/07/17' 은 birth 매개변수에 전달 Keyword arguments 함수 호출 시 매개변수 이름대로 인자를 매칭. (키워드 기반) # keyword def checkout(name, age, birth): print(f'{name}, {age}, {birth}') checko..