Preparing your experience...
Loading scripts and resources
Preparing your experience...
Loading scripts and resources
5 steps. Step 1 'Why Functions?': Without functions: same code repeated 10 times. With functions: write once, call 10 times. DRY = Don't Repeat Yourself. Step 2 'Defining': def greet(): print('Hello!'). The def keyword, function name, parentheses, colon, indented body. Step 3 'Calling': greet() → 'H
18
Likes
0
Remixes
0
Comments