Changes

Jump to: navigation, search

OPS435 Python Lab 2

12 bytes added, 10:53, 26 May 2017
PART 1 - Understanding WHILE Loops
:#Open ipython3<source>
ipython3
</source>A '''WHILE ''' loop can be used to create a '''Determinant loopLoop'''. That expression means that the number of loops (also referred to as: 'repetitions' or 'iterations') are already known or 'determined'. Below is a determinant WHILE loop that will count to 5. Each time the loop is run, it will add one to the count variable, increasing the variables number.<br><br>
:#Issue the following at the ipython3 shell to see what happens:<source>
count = 0
13,420
edits

Navigation menu