-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday8.py
More file actions
13 lines (9 loc) · 703 Bytes
/
day8.py
File metadata and controls
13 lines (9 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
#Add a function named list_benefits() that returns the following list of strings: "More organized code", "More readable code", "Easier code reuse", "Allowing programmers to share and connect code together"
#Add a function named build_sentence(info) which receives a single argument containing a string and returns a sentence starting with the given string and ending with the string " is a benefit of functions!"
def list_benefits():
return["More organized code", "More readable code", "Easier code reuse", "Allowing programmers to share and connect code together"]
def build_sentence(info):
print("%s is a benefit of functions!"%(info))
lst=list_benefits()
build_sentence("This")
print(lst)