# import bananas # import apples # print(bananas.dipped_in_chocolate()) # print(apples.offer()) #========================== from bananas import dipped_in_chocolate as dipped from apples import offer print(dipped()) print(offer())
import apples from bananas import dip_in_chocolate as choco_dip print (apples.offer()) print (choco_dip())
# Importing everything in both modules: # import bananas import apples print(apples.offer()) offer = apples.offer() print(offer) # print(bananas.dip_in_chocolate()) # Importing a single function from bananas: from bananas import dip_in_chocolate as dip print(dip())