Skip to content

Commit d17261f

Browse files
committed
edits 1
1 parent 9274177 commit d17261f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lessons/1_Functions_and_Conditionals.ipynb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,26 @@
5353
"source": [
5454
"## Recap\n",
5555
"\n",
56-
"If the following concepts are unclear to you, we recommend you attend [Python Fundamentals](https://dlab.berkeley.edu/training/upcoming-workshops) first!\n",
56+
"In [Python Fundamentals](https://dlab.berkeley.edu/training/upcoming-workshops), we covered the following:\n",
5757
"\n",
5858
"**Variables** are names attached to particular values.\n",
5959
"* To create a variable, you assign it a value and then start using it.\n",
6060
"* Assignment is done with a single equals sign `=`.\n",
6161
"* When we write `n = 300`, we are assigning 300 to the variable `n` via the assignment operator `=`.\n",
6262
"\n",
63+
"**Data types** are classifications of data. \n",
64+
"* There are a lot of data types in Python, such as integers (`int`) and strings (`str`).\n",
65+
"* Some data types are called **data structures** because they allow us to organize data. Lists (`list`) and dictionaries (`dict`) are two examples.\n",
66+
"* You can index a list using square brackets, for instance `some_list[0]` to get the first item from `some_list`.\n",
67+
"\n",
6368
"**Functions** perform actions on \"things\".\n",
6469
"* `print()` `len()`, and `type()` are some of the most commonly used functions.\n",
6570
"* You can identify a function by its trailing round parentheses. \n",
6671
"\n",
6772
"**Arguments** are the \"things\" we perform the action on within a function.\n",
6873
"* Arguments go inside the trailing parentheses of functions when we call them. \n",
6974
"* For instance, in `print('D-Lab')`, the string `D-Lab` is an argument.\n",
70-
"* Arguments are also called inputs or parameters.\n",
75+
"* Arguments are also called inputs or **parameters**.\n",
7176
"\n",
7277
"**Methods** are type-specific functions.\n",
7378
"* Different data types and structures have functions that only apply to them.\n",

0 commit comments

Comments
 (0)