Quote (carteblanche @ Jul 8 2015 07:37pm)
line 1: functions accept parameters, do something, and optionally return a result. in this example, no parameters are needed.
line 5: yes. it will repeat the action until the while condition is false
line 10: comment out the line and run your code. see what happens. lines 1 through 9 simply define the function. it will not actually get executed. line 10 is what executes it.
i edited out line 10 and the code still passed except line 4 wasnt executed onto the console. ok i understand your explanations ty