example to break decimal numbernumup into its integer and fractional partswe can do the followingipart int(numdpart num int(numfor exampleif num is then ipart is and dpart is example if we want to check to see if number is primewe can do so by checking to see if it has any divisors other than itself and in section we saw code for thisand we had the following for loopfor in range( ,num)this checks for divisibility by the integers num- howeverit turns out that you really only have to check the integers from to the square root of the number for instanceto check if is primeyou only need to check if it is divisible by the integers through as we could then try the following for loopfor in range( ,num* )howeverthis gives an errorbecause num* might not be an integerand the range function needs integers we can use int to correct thisfor in range( ,int(num* )+ )the + at the end is needed due to the range function not including the last value booleans boolean variables in python are variables that can take on two valuestrue and false here are two examples of setting boolean variablesgame_over true highlight_text false booleans can help make your programs more readable they are often used as flag variables or to indicate options booleans are often used as conditions in if statements and while loopsif game_overprint'bye'note the following equivalencesif game_overwhile not game_overif game_over==truewhile game_over==falsenote conditional expressions evaluate to booleans and you can even assign them to variables for instancethe following assigns true to because == evaluates to true ( ==