miscellaneous topics line does we set it to to indicate that at the start of the program no numbers greater than have been found counting is an extremely common thing the two things involved are count= -start the count at count=count+ -increase the count by example this modification of the previous example counts how many of the numbers the user enters are greater than and also how many are equal to to count two things we use two count variables count count for in range( )num eval(input'enter number')if num> count =count + if num== count =count + print'there are 'count 'numbers greater than 'print'there are 'count 'zeroes 'example next we have slightly trickier example this program counts how many of the squares from to end in count for in range( , )if ( ** )% == count count print(counta few notes herefirstbecause of the aforementioned quirk of the range functionwe need to use range( , to loop through the numbers through the looping variable takes on those valuesso the squares from to are represented by ** nextto check if number ends in nice mathematical trick is to check if it leaves remainder of when divided by the modulo operator%is used to get the remainder summing closely related to counting is summingwhere we want to add up bunch of numbers