8.1
def what_i_learned(): print("How to type a function.") what_i_learned()
8.2
def what_i_learned(language): print("My favorite language is :",language) what_i_learned('python')
8.5
def decribe_city(city,country): print(city," is really beautiful and it's located in ",country) decribe_city('Guangzhou','China')
8.12
def sandwich(*fillings): for filling in fillings: print("Your fillings are : ",filling) fillings = [] while True : filling = input("What kind of filling you'ed like to have : ") if filling == '': break else: fillings.append(filling) sandwich(fillings)