conditionals the if and else statements can perform simple tests here' an exampleif bprint "computer says yeselseprint "computer says nothe bodies of the if and else clauses are denoted by indentation the else clause is optional to create an empty clauseuse the pass statementas followsif bpass do nothing elseprint "computer says noyou can form boolean expressions by using the orandand not keywordsif product ="gameand type ="pirate memoryand not (age )print " 'll take it!note writing complex test cases commonly results in statements that involve an annoyingly long line of code to improve readabilityyou can continue any statement to the next line by using backslash (\at the end of line as shown if you do thisthe normal indentation rules don' apply to the next lineso you are free to format the continued lines as you wish python does not have special switch or case statement for testing values to handle multiple-test casesuse the elif statementlike thisif suffix =htm"content "text/htmlelif suffix =jpg"content "image/jpegelif suffix =png"content "image/pngelseraise runtimeerror("unknown content type"to denote truth valuesuse the boolean values true and false here' an exampleif 'spamin shas_spam true elsehas_spam false all relational operators such as return true or false as results the in operator used in this example is commonly used to check whether value is contained inside of another object such as stringlistor dictionary it also returns true or falseso the preceding example could be shortened to thishas_spam 'spamin lib fl ff