Lecture 1 | Next Lecture |
Lecture 1, Mon 04/03
Orientation to the course
Software you need: Windows Version
- MobaXTerm Home Edition: https://mobaxterm.mobatek.net/download-home-edition.html
- Python 3.6.5 for Windows from https://python.org
- Git for Windows: https://git-scm.com/download/win
Software you need: Mac Version
- XQuartz: https://www.xquartz.org/
- Python 3.6.5 for Mac https://python.org
- NOTE: You may need to address the “broken Tkinter problem” which is described here: https://www.python.org/download/mac/tcltk/
- Git is likely already included with Mac OS, so you probably don’t need to download that.
Software you need: Linux Version
- X11 is probably already installed
- Upgrade your Python to 3.6.5 if it is a later version. If you running Linux, you probably know how to do that.
- Git is probably already installed.
Accounts that you need
- Activate your College of Engineering Account here: https://accounts.engr.ucsb.edu/create
- Create a github.com account on the free plan if you don’t already have one, here: http://github.com
- If you haven’t already done it, add your
___@umail.ucsb.edu
address (specifically your@umail.ucsb.edu
address, not@ucsb.edu
) to your github.com account, and then “verify” that email address. - Visit https://ucsb-cs-github-linker.herokuapp.com/, log in with your github.com account, and join the class CCS-CS20-S18.
- If you haven’t already done it, add your
The syllabus
The syllabus is here: https://ucsb-ccs-cs20-s18.github.io/info/syllabus/
Abstractions and Algorithms
(a review of part of the syllabus)
Abstractions and notation: three, index.
An index takes in as input a topic, and gives us back a page number.
A Point-of-Sale bar code scanner at a store checkout maps a barcode, to info about the item (description and price).
A FUNCTION in general, takes in an input (or a set of inputs) and gives us back a value.
In math, for example,
f(x) = x2
Learning Something New
-
Basketball: drills vs. playing the game
-
Swimming, Painting, Guitar
-
Fixed vs. Growth Mindset
Python REPL (Read Eval Print Loop)
Also called the Python Shell Prompt
login as: pconrad
pconrad@csil-01.cs.ucsb.edu's password:
Last login: Mon Aug 7 15:29:19 2017 from 98.188.150.204
-bash-4.3$
-bash-4.3$ python3
Python 3.4.3 (default, Aug 9 2016, 15:36:17)
[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 2 + 3
5
>>> 2 + 7 *4
30
>>> 2 ** 3
8
>>> 2 ** 3 ** 2
512
>>> 2 * 3 * 4
24
>>> (2 * 3) * 4
24
>>> 2 * (3 * 4)
24
>>> (2 ** 3) ** 2
64
>>> 2 ** (3 ** 2)
512
>>>
Note that **
is right associative, not left associative.
The textbook and the homework
- Look over H00, H01, H02, and show the calendar.
Accounts you need
- https://accounts.engr.ucsb.edu/create
The textbook and the homework
- Look over H00, H01, H02, and show the calendar.