summaryrefslogtreecommitdiff
path: root/tutorials/3.x_Functions.md
diff options
context:
space:
mode:
authorChristian Kolset <christian.kolset@gmail.com>2025-02-05 16:53:27 -0700
committerChristian Kolset <christian.kolset@gmail.com>2025-02-05 16:53:27 -0700
commitd15b47d5a0a58515b64e2f57d4b6ab2b86e404be (patch)
tree6209229ed79c8ff5a98cc21fd478303ba4389d3f /tutorials/3.x_Functions.md
parent9c2e0d2d6d4a59b1a8cc34a98e416f97f67364df (diff)
Renamed tutorials and updated links in tutorial/readme.md
Diffstat (limited to 'tutorials/3.x_Functions.md')
-rw-r--r--tutorials/3.x_Functions.md29
1 files changed, 0 insertions, 29 deletions
diff --git a/tutorials/3.x_Functions.md b/tutorials/3.x_Functions.md
deleted file mode 100644
index e4c9874..0000000
--- a/tutorials/3.x_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
-```