Back to Freecodecamp

Functions

curriculum/challenges/english/blocks/control-flow-and-functions-in-python/functions-video.md

latest484 B
Original Source

--description--

In this video, you will learn how to define and call a function.

--questions--

--text--

Which of the following is the correct way to call a function?

--answers--

python
def sayhi():
    print("Hello World")

sayhi()()

python
def sayhi():
    print("Hello World")

()sayhi()

python
def sayhi():
    print("Hello World")

sayhi

python
def sayhi():
    print("Hello World")

sayhi()

--video-solution--

4