Skip to content · ⁨본문 바로가기⁩

Call a function · ⁨함수 호출⁩

English

Call a function

greet is already written for you. Call it with "Mia" so the program prints "Hello, Mia".

Writing def only describes the function — nothing happens until you call it by name with brackets: greet("Mia"). The call goes at the left margin, outside the def.

한국어

함수 호출하기

greet는 이미 작성되어 있습니다. "Mia"를 전달하여 프로그램이 "Hello, Mia"를 출력하도록 하세요.

def을 작성하는 것은 함수를 설명할 뿐입니다. 괄호와 함께 이름으로 호출하기 전까지는 아무 일도 일어나지 않습니다: greet("Mia"). 호출은 def 바깥의 왼쪽 여백에 위치해야 합니다.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP