From baa0d75ea2e4fd8add62e2b5482e1c066e1920e9 Mon Sep 17 00:00:00 2001 From: Adam Blank <blank@caltech.edu> Date: Fri, 11 Oct 2024 23:46:20 +0000 Subject: [PATCH] Add new file --- 03/functions.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 03/functions.py diff --git a/03/functions.py b/03/functions.py new file mode 100644 index 0000000..01aa168 --- /dev/null +++ b/03/functions.py @@ -0,0 +1,36 @@ + +############## + + +s = "Adam" +# s[0] = "a" +lst = ["", "", "", ""] +lst[0] = True + + +def philippe(animal): + return "dragon" + + +animal1 = "capybara" +animal1 = philippe(animal1) +print(animal1) + + +def arethey(animal1): + animal1 = "dragon" + + +def philippe(x): + return "dragon" + + +def dogsarebetter(animal): + animal = "robot" + animal = philippe(animal) + return animal + + +animal1 = "capybara" +animal1 = dogsarebetter(animal1) +print(animal1) -- GitLab