the ifelseand elif statements control the conditional execution of statements the general format is series of if and elif statements followed by final else statementx='oneif == print('false'elif == print('true'elseprint('something else'#prints 'something elsenote the use of the =operator to test for the same values this returns true if the values are equalit returns false otherwise note also that setting to string will return something else rather than generate type error as may happen in languages that are not dynamically typed dynamically typed languages such as python allow flexible assignment of objects with different types the other way of controlling program flow is with loops they are created using the while or for statementsfor exampleoverview of data types and objects python contains built-in data types these include four numeric types (intfloatcomplexbool)four sequence types (strlisttuplerange)one mapping type (dict)and two set types it is also possible to create user-defined objects such as functions or classes we will look at the string and the list data types in this and the remaining built-in types in the next