diff --git a/images/horst_community.png b/images/horst_community.png new file mode 100644 index 0000000..ebc6540 Binary files /dev/null and b/images/horst_community.png differ diff --git a/slides/images/horst_community.png b/slides/images/horst_community.png new file mode 100644 index 0000000..ebc6540 Binary files /dev/null and b/slides/images/horst_community.png differ diff --git a/slides/lesson1_slides.html b/slides/lesson1_slides.html index de68197..efcdfad 100644 --- a/slides/lesson1_slides.html +++ b/slides/lesson1_slides.html @@ -384,6 +384,8 @@ margin-right: 0; } + +
The full CoC can be found here.
+We ask you to follow Participation Guidelines and Code of Conduct.
Intro to Computing
Data structures
Data wrangling 1
Community Session 1 (optional)
Data wrangling 2
Data visualization
Community Session 2 (optional)
Putting it together: preview for code-a-thon (Tuesday Nov. 12)
Code-a-thon: Friday Nov. 22
We will focus on English <-> Programming Code for Python Interpreter in this class.
Another way of putting it: How we organize ideas <-> Instructing a computer to do something.
-Consider the expression:
+ +2
+39
-Operations are just functions. We could have written:
-39
104
To build up a computer program, we need to store our returned data type from our expression somewhere for downstream use.
-Look, now x
can be reused downstream:
37
-A function has a function name, arguments, and returns a data type.
-Execution rule for functions:
-A functionâs input arguments, when thereâs more than one, can be specified by:
-The order the input given: pow(2, 3)
is different than pow(3, 2)
.
The name of the input argument: pow(base=2, exp=3)
.
If the arguments contain expressions, evaluate those expressions first!
+78
max(a, b, ...)
takes in at least two Integer or Float input arguments, and returns the highest value. You can give it more than two input arguments.
pow(base, exp)
takes in two Integer input arguments, and returns the base
raised to the exp
power.
dir()
takes in no input arguments, and returns all the variables in the environment as a list.
8
+['In',
+ 'Out',
+ '_',
+ '_1',
+ '_10',
+ '_11',
+ '_12',
+ '_13',
+ '_2',
+ '_3',
+ '_4',
+ '_5',
+ '_6',
+ '_7',
+ '_8',
+ '__',
+ '___',
+ '__builtin__',
+ '__builtins__',
+ '__name__',
+ '_dh',
+ '_i',
+ '_i1',
+ '_i10',
+ '_i11',
+ '_i12',
+ '_i13',
+ '_i14',
+ '_i2',
+ '_i3',
+ '_i4',
+ '_i5',
+ '_i6',
+ '_i7',
+ '_i8',
+ '_i9',
+ '_ih',
+ '_ii',
+ '_iii',
+ '_oh',
+ 'add',
+ 'age',
+ 'age_double',
+ 'exit',
+ 'get_ipython',
+ 'ojs_define',
+ 'open',
+ 'quit',
+ 'score']
List is a data structure that stores many elements of various data type, and the order its elements are stored matters. Each element of a List contains a single data type, or single data structure.
+You can create a List via the bracket `[ ]` operator:
5
+
Then, you can access the elements of a list via its âindex numberâ, starting at 0.
+ +2
?pow
-
-pow(base, exp, mod=None)
-Equivalent to base**exp with 2 arguments or base**exp % mod with 3 arguments
-
-Some types, such as ints, are able to use a more efficient algorithm when
-invoked using the three argument form.
-