Notes
Big Ideas/Terms
Vocabulary
-
Terminal- where you run commands
-
Repository- where you store code/files (you can store anything in here)
- Master branch- original branch
- Branch- a version of the master branch
-
Compiler- takes your code and tries to translate it to tell u if u have errors, runs that command
-
Procedural Abstraction- making/combining smaller parts in html to create a website
-
Project Based Learning- students learn by collaborating together and creating projects to encounter and learn real-world problems
Actions
-
Kernel- way of communication between machine language and hardware
-
Push- send out changes from your local repository to remote branch
-
Pull- taking from remote branch to local repository
Formatting
-
To add an image in markdown- src=”/andafp/images/filename”
- In Fastpages you can insert images in HTML or Markdown. The Teacher finds
easier to work with for embedding links when trying to control size.
- In Fastpages you can insert images in HTML or Markdown. The Teacher finds
-
Links
-
Look up
and []() syntax in both HTML and Markdown. These should become easy and familiar.
-
Softwares & Applications
-
VSCode- Code Editor
-
Git- coordinating work among programmers to develop source code/source code management
-
Jupyter Notebook- to edit and run notebook documents
-
Bash- command-line interpreter or user shell used to interpret user commands
-
Docker- platform that simplifies the process of building, running, managing and distributing applications. it deploys software ni packages called containers
Languages
-
Python
- for function it is def
- to type message, print
-
Java/Javascript: loosely typed language
- for function it is function
- parameter (inside function)
- to type message, console.log
-
JSON: long string of information, can be used to transfer different data structures to different languages
Different File Types
-
.ipynb is Jupyter Notebook
-
.md is Markdown
Sample of Python Variables
variable of type string
name = “Joselyn Anda” print(“name”, name, type(name))
- name is a key
- joselyn anda is a value
variable of type integer
age = 16 print(“age”, age, type(age))
- age is a key
- 16 is a value
variable of type float
score = 90.0 print(“score”, score, type(score))
- score is a key
- 90.0 is a value print()
variable of type list (many values in one variable)
langs = [“Python”, “JavaScript”, “Java”, “Bash”] print(“langs”, langs, type(langs)) print(“- langs[3]”, langs[3], type(langs[3]))
- langs is a key
- [“Python”, “Javascript”, “Java”, “Bash”] is a value print()
variable of type dictionary (a group of keys and values)
person = { “name”: name, “age”: age, “score”: score, “langs”: langs }
print(“person”, person, type(person))
### print(‘- person[“name”]’, person[“name”], type(person[“name”])) — ## Lists & Dictionary
-
a list is in square brackets []
-
a dictionary is in curly brackets {}
-
an integer is just a whole number
-
a number with a decimal is a float
-
using a comma puts space between values
-
to choose from a list use the index [] which always starts at 0