I don’t really understand the difference between these two.
They do the same exact thing for me, but I need to know if there’s any difference for future reference?
A while loop will continue to execute its code as long as the conditions are met.
A conditional statement will only execute its code once when the conditions are met.
1 Like