Skip to content

Commit 32a58ef

Browse files
authored
Improve function definition explanation in teaching material
Clarify the explanation of defining functions in Python and correct minor grammatical errors.
1 parent 125a764 commit 32a58ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • teaching python

‎teaching python/def‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
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:
2+
It is very helpful if you don't want to repeat something a lot
33
def pizza():
44
print("peperoni")
55
then whenever I say pizza() it will say peperoni
66
you need to say the open and close perantaces after the name of the def.
77
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 : )
8+
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

Comments
 (0)