-
Notifications
You must be signed in to change notification settings - Fork 9
/
ex_03_2.py
26 lines (18 loc) · 634 Bytes
/
ex_03_2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
#AUTHOR: alexxa
#DATE: 24.12.2013
#SOURCE: Think Python: How to Think Like a Computer Scientist by Allen B. Downey
# http://www.greenteapress.com/thinkpython/html/index.html
#PURPOSE: Chapter 3. Functions
# Exercise 3.2. Move the function call back to the bottom and
# move the definition of print_lyrics after the definition of
# repeat_lyrics. What happens when you run this program?.
# no error!
def repeat_lyrics():
print_lyrics()
print_lyrics()
def print_lyrics():
print("I'm a lumberjack, and I'm okay.")
print("I sleep all night and I work all day.")
repeat_lyrics()
#END