equal
deleted
inserted
replaced
35 In order to solve this problem, we need the following machinery: |
35 In order to solve this problem, we need the following machinery: |
36 File Reading - which we have already looked at. |
36 File Reading - which we have already looked at. |
37 parsing - which we have looked at partially. |
37 parsing - which we have looked at partially. |
38 Dictionaries - we shall be introducing the concept of dictionaries here. |
38 Dictionaries - we shall be introducing the concept of dictionaries here. |
39 And finally plotting - which we have been doing all along. |
39 And finally plotting - which we have been doing all along. |
|
40 |
|
41 Let's get started, by opening the IPython prompt by typing, |
|
42 |
|
43 ipython -pylab |
40 |
44 |
41 Let's first start off with dictionaries. |
45 Let's first start off with dictionaries. |
42 |
46 |
43 We earlier used lists briefly. Back then we just created lists and appended items into them. |
47 We earlier used lists briefly. Back then we just created lists and appended items into them. |
44 x = [1, 4, 2, 7, 6] |
48 x = [1, 4, 2, 7, 6] |