1/37
Overview of Computer Programming, Algorithms, Flowcharts, Jupyter Notebook, Python Basics, Python Data Types, Python Operators
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Computer Programming
Giving instructions to computer
Machine Code
Binary, The only language computers directly understand
Assembly Language
Uses mnemonics instead of binary.
High-Level Languages
Not as memory-efficient, but easy to debug and maintain
Monty Python’s Flying Circus
Python is named after
Algorithm
step-by-step instruction
Input
What information is given
Process
Task to be performed
Output
Expected result
Flowchart
Graphical representation of an algorithm
Global
Variable entirely
Local
Variable inside the function
Reserved Words
Cannot be used as variable names
Jupyter Notebook
open-source web app
Brian Granger & Fernando Perez
Founders of Jupyter Notebook
Shift + Enter
Execution
A
Insert cell above
B
Insert cell below
DD
Delete cell
M
Convert to Markdown
Y
Convert to Code
int
whole numbers
float
decimals
complex
has real + imaginary numbers
List [ ]
Editable, Ordered
Tuple ( )
Fixed, Ordered
Dictionary { }
Key-value pairs
Numbers
int, float, complex
String
text in quotes, can slice & use methods
Arithmetic
+ - / % * //
Comparison
== != < > <= >=
Assignment
= += -=
Logical
and or not
Membership
in, not in
Identity
is, is not
Bitwise
& | ^ ~ << >>
IDE
Integrated Development Environment
Indentation
spaces at the beginning of a code line