Lab 1 Introduction to Python

range in IPython • %history 2-3 5 7-9 • Range 7-9 means: line 7,8 AND 9 (unlike Python’s range) • You can mix ranges and single lines (duplicates are fine too!) • %history 457/7 # Line 7 from session number 457 • %history ~2/7 # Line 7 from 2 sessions ago • %history ~1/ # The whole previous session • %history ~8/1-~6/5 # From the 1st line 8 sessions ago until the 5th line of 6 ................
................