lexical conventions and syntax his describes the syntactic and lexical conventions of python program topics include line structuregrouping of statementsreserved wordsliteralsoperatorstokensand source code encoding line structure and indentation each statement in program is terminated with newline long statements can span multiple lines by using the line-continuation character (\)as shown in the following examplea math cos( ( )math sin( ( )you don' need the line-continuation character when the definition of triple-quoted stringlisttupleor dictionary spans multiple lines more generallyany part of program enclosed in parentheses )brackets ]braces }or triple quotes can span multiple lines without use of the line-continuation character because they clearly denote the start and end of definition indentation is used to denote different blocks of codesuch as the bodies of functionsconditionalsloopsand classes the amount of indentation used for the first statement of block is arbitrarybut the indentation of the entire block must be consistent here' an exampleif astatement statement elsestatement statement consistent indentation inconsistent indentation (errorif the body of functionconditionalloopor class is short and contains only single statementit can be placed on the same linelike thisif aelsestatement statement to denote an empty body or blockuse the pass statement here' an exampleif apass elsestatements lib fl ff