diff --git a/02/functions.py b/02/functions.py new file mode 100644 index 0000000000000000000000000000000000000000..01aa16825788fdf4b82fe63c01dee9213b0172fb --- /dev/null +++ b/02/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)