Skip to content

Commit 628de39

Browse files
authored
Create def
1 parent c21351e commit 628de39

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • teaching python

teaching python/def

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)