1 parent c21351e commit 628de39Copy full SHA for 628de39
1 file changed
teaching python/def
@@ -0,0 +1,8 @@
1
+def is to difine stuff like variables lists and tuples.
2
+The way it is different is because you can make it equal to print and input, for example:
3
+def pizza():
4
+ print("peperoni")
5
+then whenever I say pizza() it will say peperoni
6
+you need to say the open and close perantaces after the name of the def.
7
+if you want to make it say what the def equals then use print or input.
8
+Never ever forget the tab it is very important same with the colin not a semicolin(a colin is this : )
0 commit comments