the following short example shows how if tests let you respond to special situations correctly imagine you have list of cars and you want to print out the name of each car car names are proper namesso the names of most cars should be printed in title case howeverthe value 'bmwshould be printed in all uppercase the following code loops through list of car names and looks for the value 'bmwwhenever the value is 'bmw'it' printed in uppercase instead of title casecars py cars ['audi''bmw''subaru''toyota' for car in carsif car ='bmw'print(car upper()elseprint(car title()the loop in this example first checks if the current value of car is 'bmwu if it isthe value is printed in uppercase if the value of car is anything other than 'bmw'it' printed in title caseaudi bmw subaru toyota this example combines number of the concepts you'll learn about in this let' begin by looking at the kinds of tests you can use to examine the conditions in your program conditional tests at the heart of every if statement is an expression that can be evaluated as true or false and is called conditional test python uses the values true and false to decide whether the code in an if statement should be executed if conditional test evaluates to truepython executes the code following the if statement if the test evaluates to falsepython ignores the code following the if statement checking for equality most conditional tests compare the current value of variable to specific value of interest the simplest conditional test checks whether the value of variable is equal to the value of interestu car 'bmwv car ='bmwtrue