|
4 | 4 | "cell_type": "markdown", |
5 | 5 | "metadata": {}, |
6 | 6 | "source": [ |
7 | | - "# READING PYTHON\n", |
| 7 | + "# Reading Python\n", |
8 | 8 | "- This notebooks goal is not to produce python code, but an introduction on to to make sense of (read) code.\n", |
9 | 9 | " - we will go through and learn some Python terminology and structure. \n", |
10 | 10 | "\n", |
|
17 | 17 | "source": [ |
18 | 18 | "Python has a syntax… \n", |
19 | 19 | "….and it builds on what happened immediately before, line by line. \n", |
| 20 | + "So the value of y depends on what happened just before.\n", |
20 | 21 | "\n", |
21 | | - " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/readpy.png\" alt=\"Open Jupyter Lab\" width=\"200\"/>" |
| 22 | + " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/readpy.png\" alt=\"Open Jupyter Lab\"/>" |
22 | 23 | ] |
23 | 24 | }, |
24 | 25 | { |
|
35 | 36 | "cell_type": "markdown", |
36 | 37 | "metadata": {}, |
37 | 38 | "source": [ |
38 | | - "So the value of y depends on what happened just before.\n", |
39 | | - "\n", |
40 | 39 | "Reading Left to Right and Right to Left\n", |
41 | 40 | "\n", |
42 | | - "Left to right: You read the line of code like a sentence: x = 0 + 1 means “x equals 0 plus 1.”\n", |
43 | | - "\n", |
44 | | - "Right to left: Python evaluates the right side first (0 + 1), and then stores that result into the variable on the left (x).\n", |
45 | | - "\n", |
46 | | - "So both directions matter:\n", |
47 | | - "\n", |
48 | 41 | "Human thinking → left to right.\n", |
| 42 | + "Left to right: You read the line of code like a sentence: x = 0 + 1 means “x equals 0 plus 1.”\n", |
49 | 43 | "\n", |
50 | | - "Computer execution → right side first, then assign left." |
| 44 | + "Computer execution → right side first, then assign left.\n", |
| 45 | + "Right to left: Python evaluates the right side first (0 + 1), and then stores that result into the variable on the left (x).\n" |
51 | 46 | ] |
52 | 47 | }, |
53 | 48 | { |
54 | | - "cell_type": "code", |
55 | | - "execution_count": 1, |
| 49 | + "cell_type": "markdown", |
56 | 50 | "metadata": {}, |
57 | | - "outputs": [], |
58 | | - "source": [ |
59 | | - "# [Slides for this session](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/files/intro-to-python-beginners.pdf)" |
60 | | - ] |
| 51 | + "source": [] |
61 | 52 | }, |
62 | 53 | { |
63 | 54 | "cell_type": "markdown", |
64 | 55 | "metadata": {}, |
65 | 56 | "source": [ |
| 57 | + "- References\n", |
| 58 | + "- \n", |
66 | 59 | "[Introduction to Cultural Analytics & Python, Designed by Melanie Walsh](https://melaniewalsh.github.io/Intro-Cultural-Analytics/welcome.html)\n", |
67 | 60 | "\n" |
68 | 61 | ] |
|
0 commit comments