Page 91 - Beginning Programming with Pyth - John Paul Mueller
P. 91

 FIGURE 4-15: Cells can execute in any order in Notebook.
Now place the cursor in the third cell — the one that is currently blank — and type print("This is myVar: ", myVar). Click Run. The output in Figure 4-16 shows that the cells have executed in anything but a rigid order, but that myVar is global to the notebook. What you do in other cells with data affects every other cell, no matter what order the execution takes place.
  
































































































   89   90   91   92   93