define function called name of function inputs def total)colon we will plunge straight into the python the python keyword to define function is "defthis is followed by the name of the function"totalin this case this is followed by pair of round brackets which will contain all the input values for the function finally there is colon to mark the end of the line and the beginning of the body of the function