This is the code and notes from my live Twitch programming and drawing classes.
 
 
streaming-school/python/code/module-2/ex18_demo.py

31 lines
435 B

### @export "1"
def do_nothing():
pass
### @export "2"
def do_something():
print("I did something!")
### @export "3"
def do_something():
print("I did something!")
# now we can call it by its name
do_something()
### @export "4"
def do_more_things(a, b):
print("A IS", a, "B IS", b)
do_more_things("hello", 1)
### @export "5"
def do_more_things(a, b):
a = "hello"
b = 1
print("A IS", a, "B IS", b)