Question: what is the difference between if statement and for loop?
Answer: An if statement causes the code inside the if block to execute one time IF the condition is true. A while loop causes the code inside the while block to execute over and over and over UNTIL the condition is NOT true. A for loop is actually a while loop with a special (shortcut) syntax.