adding new functions so farwe have only been using the functions that come with pythonbut it is also possible to add new functions function definition specifies the name of new function and the sequence of statements that execute when the function is called exampledef print_lyrics()print (" ' lumberjackand ' okay "print (" sleep all night and work all day "def is keyword that indicates that this is function definition the name of the function is print_lyrics the rules for function names are the same as for variable nameslettersnumbers and some punctuation marks are legalbut the first character can' be number you can' use keyword as the name of functionand you should avoid having variable and function with the same name the empty parentheses after the name indicate that this function doesn' take any arguments the first line of the function definition is called the headerthe rest is called the body the header has to end with colon and the body has to be indented by conventionthe indentation is always four spaces the body can contain any number of statements the strings in the print statements are enclosed in double quotes single quotes and double quotes do the same thingmost people use single quotes except in cases like this where single quote appears in the string once you have defined functionyou can use it inside another function for exampleto repeat the previous refrainwe could write function called repeat_lyricsdef repeat_lyrics()print_lyrics(print_lyrics(and then call repeat_lyricsrepeat_lyrics( ' lumberjackand ' okay sleep all night and work all day ' lumberjackand ' okay sleep all night and work all day