example create function in separate file we start by creating separate python file (myfunctions pyfor the function def average ( / listing function calculating the average nextwe create new python file ( testaverage pywhere we use the function we created from im po rt average ( print listing test of average function [end of example functions with multiple return values typically we want to return more than one value from function example create function function with multiple return values create the following example def stat ( totalsum #find sum numbers data totalsum totalsum #find mean average numbers data mean / mean