2 02 Functions
2 02 Functions
Functions
Functions
tieMyShoes()
func displayPi() {
print("3.1415926535")
}
displayPi()
3.1415926535
Parameters
triple(value: 10)
sayHello(firstName: "Amy")
Argument labels
Wombats: 100
Wombats: 0
Unit 2—Lesson 2
Lab: Functions
Open and complete the exercises in Lab - Functions.playground
© 2021 Apple Inc.
This work is licensed by Apple Inc. under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.