this time we use nested if statement''num float (input ("enter number")if num > if num = print("zero"elseprint ("positive number"elseprint ("negative number"output enter number positive number output enter number- negative number output enter number zero looping statements in generalstatements are executed sequentiallythe first statement in function is executed firstfollowed by the secondand so on there may be situation when you need to execute block of code several number of times programming languages provide various control structures that allow for more complicated execution paths loop statement allows us to execute statement or group of statements multiple times for loopthe for loop in python is used to iterate over sequence (listtuplestringor other iterable objects iterating over sequence is called traversal syntax of for loop for val in sequencebody of for