키워드 값을 이용한 함수 호출

배찬영·2021년 4월 17일
0

파이썬

목록 보기
14/31

def profile(name, age, main_lang):
print(name, age, main_lang)

profile(name="유재석", main_lang="자바", age = 30)
profile(age = 29, name = "김태호", main_lang = "파이썬")

함수를 호출하는 동시에 키워드값을 이용해 값을 선언 가능하다.

profile
안녕하세요

0개의 댓글