sscasc@tumkur sum count num=int(input("enter your number:")while num !- sum sum num count count num =int(input("enter your number:")print ("count is :"countprint ("sum is :"sumprint ("average is :"sum countthe for loop for loop iterates through each statements in sequence for exactly know many times the loop body needs to be executedso control variable can be used to count the executions loop of this type is called counter-controlled loop in generalthe loop can be written as followsfor in range(initialvalueendvalue)loop body note that the statement(smust be indented in generalthe syntax of for loop isfor var in sequenceloop body the function range(abreturns the sequence of integers aa - and the range function has two more versions you can also use range(aor range(abkrange(ais the same as range( ak is used as step value in range(abkthe first number in the sequence is each successive number in the sequence will increase by the step value is the limit the last number in the sequence must be less than example :to demonstrate for for in range( )print (iexample str=input("enter string"for ch in strif ch in 'aeiou'print ('letter'ch'is vowel'elseprint ('letter 'ch'is not vowel'sp_python programming