1 parent 125a764 commit 32a58efCopy full SHA for 32a58ef
1 file changed
teaching python/def
@@ -1,8 +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:
+It is very helpful if you don't want to repeat something a lot
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 : )
+Never ever forget the tab it is very important. same with the colin not a semicolin(a colin is this : ) (a semicolin is this ; )
0 commit comments