From 2994c7457bf02bd83cfc31f2236fd74dee4582a9 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Thu, 20 Dec 2018 13:23:18 -0700 Subject: [PATCH] Add function info --- Codecademy.md | 19 +++++++++++++++++++ Hex | 1 + 2 files changed, 20 insertions(+) create mode 160000 Hex diff --git a/Codecademy.md b/Codecademy.md index e73c8ba..9d86e8e 100644 --- a/Codecademy.md +++ b/Codecademy.md @@ -148,6 +148,25 @@ month = now.month day = now.day ``` +# Function P3 Ch.2 + +## Defining a Function +``` + def greet_customer(): + print("Welcome!") +``` + +## Calling Functions + ``` + greet_customer() + ``` + +or if it has parameters: + +``` +greet_customer(1,ten) +``` + # Fun Projects Design a shop using Ex7 and Ex9 as a frame: diff --git a/Hex b/Hex new file mode 160000 index 0000000..51550dc --- /dev/null +++ b/Hex @@ -0,0 +1 @@ +Subproject commit 51550dc123eab347873de585140948f645908797