'wasnot in vals true in general the two versions areitem in sequence item not in sequence detecting the need for if statementslike with planning programs needing''for'statementsyou want to be able to translate english descriptions of problems that would naturally include if or if-else statements what are some words or phrases or ideas that suggest the use of these statementsthink of your own and then compare to few gave graduate exercise write programgraduate pythat prompts students for how many credits they have print whether of not they have enough credits for graduation (at loyola university chicago credits are needed for graduation head or tails exercise write program headstails py it should include function flip()that simulates single flip of coinit randomly prints either heads or tails accomplish this by choosing or arbitrarily with random randrange( )and use an if-else statement to print heads when the result is and tails otherwise in your main program have simple repeat loop that calls flip( times to test itso you generate random sequence of heads and tails strange function exercise save the example program jumpfuncstub py as jumpfunc pyand complete the definitions of functions jump and main as described in the function documentation strings in the program in the jump function definition use an if-else statement (hint in the main function definition use for-each loopthe range functionand the jump function the jump function is introduced for use in strange sequence exercise (page )and others after that multiple tests and if-elif statements often you want to distinguish between more than two distinct casesbut conditions only have two possible resultstrue or falseso the only direct choice is between two options as anyone who has played " questionsknowsyou can distinguish more cases by further questions if there are more than two choicesa single test may only reduce the possibilitiesbut further tests can reduce the possibilities further and further since most any kind of statement can be placed in an indented statement blockone choice is further if statement for instance consider function to convert numerical grade to letter grade' '' '' ''dor ' 'where the cutoffs for ' '' '' 'and 'dare and respectively one way to write the function would be test for one grade at timeand resolve all the remaining possibilities inside the next else clause "in this case do ___otherwise""if ___then""when ___ is truethen""___ depends on whether" if you divide an even number by what is the remainderuse this idea in your if condition if statements