Streamline text
This commit is contained in:
parent
99e720d556
commit
3bbcc3a04d
4 changed files with 8 additions and 8 deletions
|
|
@ -1437,7 +1437,7 @@
|
|||
}
|
||||
},
|
||||
"source": [
|
||||
"### Value"
|
||||
"### Value / \"Meaning\""
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -1448,7 +1448,7 @@
|
|||
}
|
||||
},
|
||||
"source": [
|
||||
"Almost trivially, every object also has a value to which it **evaluates** when referenced. We think of the value as the **conceptual idea** of what the $0$s and $1$s in the bag mean to *humans*.\n",
|
||||
"Almost trivially, every object also has a value to which it **evaluates** when referenced. We think of the value as the **conceptual idea** of what the $0$s and $1$s in the bag mean to *humans*. In other words, an object's value regards its *semantic* meaning.\n",
|
||||
"\n",
|
||||
"For built-in data types, Python prints out an object's value as a so-called **[literal](https://docs.python.org/3/reference/lexical_analysis.html#literals)**: This means that we may copy and paste the value back into a code cell and create a *new* object with the *same* value."
|
||||
]
|
||||
|
|
@ -2981,7 +2981,7 @@
|
|||
}
|
||||
},
|
||||
"source": [
|
||||
"Variable names may contain upper and lower case letters, numbers, and underscores (i.e., `_`) and be as long as we want them to be. However, they must not begin with a number. Also, they must not be any of Python's built-in **[keywords](https://docs.python.org/3/reference/lexical_analysis.html#keywords)**.\n",
|
||||
"Variable names may contain upper and lower case letters, numbers, and underscores (i.e., `_`) and be as long as we want them to be. However, they must not begin with a number. Also, they must not be any of Python's built-in **[keywords](https://docs.python.org/3/reference/lexical_analysis.html#keywords)** like `for` or `if`.\n",
|
||||
"\n",
|
||||
"Variable names should be chosen such that they do not need any more documentation and are self-explanatory. A widespread convention is to use so-called **[snake\\_case](https://en.wikipedia.org/wiki/Snake_case)**: Keep everything lowercase and use underscores to separate words.\n",
|
||||
"\n",
|
||||
|
|
@ -3734,7 +3734,7 @@
|
|||
" - include [built-in functions](https://docs.python.org/3/library/functions.html) like [print()](https://docs.python.org/3/library/functions.html#print), [sum()](https://docs.python.org/3/library/functions.html#sum), or [len()](https://docs.python.org/3/library/functions.html#len)\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"- flow control (cf., [Chapter 3](https://nbviewer.jupyter.org/github/webartifex/intro-to-python/blob/master/03_conditionals_00_lecture.ipynb))\n",
|
||||
"- flow control (cf., [Chapter 3](https://nbviewer.jupyter.org/github/webartifex/intro-to-python/blob/master/03_conditionals_00_lecture.ipynb) and [Chapter 4](https://nbviewer.jupyter.org/github/webartifex/intro-to-python/blob/master/04_iteration_00_lecture.ipynb))\n",
|
||||
" - expression of **business logic** or an **algorithm**\n",
|
||||
" - conditional execution of parts of a program (e.g., `if` statements)\n",
|
||||
" - repetitive execution of parts of a program (e.g., `for`-loops)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue