7. A for loop repeats commands a specific number of times and a while loop repeats until a condition becomes false.