Skip to content

Commit c903c1b

Browse files
mod read
1 parent f314db2 commit c903c1b

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

docs/python-reading.ipynb

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# READING PYTHON\n",
7+
"# Reading Python\n",
88
"- This notebooks goal is not to produce python code, but an introduction on to to make sense of (read) code.\n",
99
" - we will go through and learn some Python terminology and structure. \n",
1010
"\n",
@@ -17,8 +17,9 @@
1717
"source": [
1818
"Python has a syntax… \n",
1919
"….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",
2021
"\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\"/>"
2223
]
2324
},
2425
{
@@ -35,34 +36,26 @@
3536
"cell_type": "markdown",
3637
"metadata": {},
3738
"source": [
38-
"So the value of y depends on what happened just before.\n",
39-
"\n",
4039
"Reading Left to Right and Right to Left\n",
4140
"\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",
4841
"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",
4943
"\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"
5146
]
5247
},
5348
{
54-
"cell_type": "code",
55-
"execution_count": 1,
49+
"cell_type": "markdown",
5650
"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": []
6152
},
6253
{
6354
"cell_type": "markdown",
6455
"metadata": {},
6556
"source": [
57+
"- References\n",
58+
"- \n",
6659
"[Introduction to Cultural Analytics & Python, Designed by Melanie Walsh](https://melaniewalsh.github.io/Intro-Cultural-Analytics/welcome.html)\n",
6760
"\n"
6861
]

0 commit comments

Comments
 (0)