summaryrefslogtreecommitdiff
path: root/tutorials/Functions.md
diff options
context:
space:
mode:
authorChristian Kolset <christian.kolset@gmail.com>2025-02-13 19:25:10 -0700
committerChristian Kolset <christian.kolset@gmail.com>2025-02-13 19:25:10 -0700
commit5d0b7731384c2a2b2bf410bc90e542300f0a0ad3 (patch)
tree59edcaa3918eb178164f58dc44c6160935c480e2 /tutorials/Functions.md
parentc4e55bd19805d6a1ea9fbda8975a87e8d9747efa (diff)
renamed files to contain numbering
Diffstat (limited to 'tutorials/Functions.md')
-rw-r--r--tutorials/Functions.md29
1 files changed, 0 insertions, 29 deletions
diff --git a/tutorials/Functions.md b/tutorials/Functions.md
deleted file mode 100644
index e4c9874..0000000
--- a/tutorials/Functions.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# Functions
-
-Like a traditional mathematical functions, python functions can take an input, process it, and give an output. Functions are blocks of code that is run everytime it's called. This allows us to re-use code.
-
-Functions are defined by using the <code> def </code> keyword. Reminder: it is important to indent all code inside the function to signify the end of the function.
-
-## Creating a function with no input
-This is useful if you need to re-use code without having to copy paste the block.
-
-```
- def function_name():
- print("This is from a function")
-```
-
-## Creating a function with one input
-
-```
- def function(x):
- print(x + " is best")
-```
-
-## Returning values from a function
-Let's make a
-
-```
- def function(x, b):
- y = 3*x+b
- return y
-```