Skip to content

Commit

Permalink
test text change
Browse files Browse the repository at this point in the history
  • Loading branch information
henchc committed Mar 27, 2018
1 parent e31f478 commit b8efa9f
Showing 1 changed file with 68 additions and 24 deletions.
92 changes: 68 additions & 24 deletions 01 - Intro_to_Python/01-Python-Jupyter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"print(\"Hello, World!\")"
Expand All @@ -80,7 +82,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"print(\"\\N{WAVING HAND SIGN}, \\N{EARTH GLOBE ASIA-AUSTRALIA}!\")"
Expand All @@ -90,13 +94,15 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The fundamental building block of Python code is an expression. Cells can contain multiple lines with multiple expressions. When you run a cell, the lines of code are executed in the order in which they appear. Every `print` expression prints a line. Run the next cell and notice the order of the output."
"One of the fundamental building blocks of Python code is an expression. Cells can contain multiple lines with multiple expressions. When you run a cell, the lines of code are executed in the order in which they appear. Every `print` expression prints a line. Run the next cell and notice the order of the output."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"print(\"First this line is printed,\")\n",
Expand Down Expand Up @@ -124,7 +130,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"#Fill in the print statement\n",
Expand All @@ -150,7 +158,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"print(\"This line is missing something.\""
Expand Down Expand Up @@ -197,7 +207,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Examples of expressions:\n",
Expand Down Expand Up @@ -229,7 +241,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"a = 4\n",
Expand All @@ -246,7 +260,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Notice that 'a' retains its value.\n",
Expand All @@ -269,7 +285,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# an empty list\n",
Expand All @@ -291,7 +309,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Elements are selected like this:\n",
Expand All @@ -318,7 +338,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# An adder function that adds 2 to the given n.\n",
Expand All @@ -329,7 +351,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"add_two(5)"
Expand All @@ -347,7 +371,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"def is_multiple(m, n):\n",
Expand All @@ -360,7 +386,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"is_multiple(12, 4)"
Expand All @@ -369,7 +397,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"is_multiple(12, 7)"
Expand All @@ -387,7 +417,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"my_dict = {\"a\": 5, \"b\": 8, \"c\": \"value\", 10: [\"one\", 2, \"three\"]}"
Expand All @@ -396,7 +428,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"type(my_dict)"
Expand All @@ -405,7 +439,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Looking up by key\n",
Expand All @@ -415,7 +451,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Reassigning a value to a key\n",
Expand All @@ -426,7 +464,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Adding a key-value pair\n",
Expand All @@ -437,7 +477,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Deleting a key-pair\n",
Expand All @@ -462,7 +504,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"## YOUR CODE HERE\n"
Expand All @@ -486,7 +530,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
"version": "3.6.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit b8efa9f

Please sign in to comment.