1/29
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
headless system
system that does not require a screen such as microcontroller and raspberry pi. they use command line
directory
folder
cd
change directory
pwd
path to working directory
cd..
takes u to parent directory
if name of folder has space
it is a string, so put quote marks
nano
text editor
cat
read and manages other interactions with files, prints out contents of nano text file
unix system
operating system that manages computer hardware efficiently, multiuser. Linux and MacOS are examples
CLI
command line, how u communicate with unix
files/directory
how unix stores information
whitespace sensitive
tabs and spaces affect syntax and code meaning
syntax
set of rules that define correct structure and format of code in programming language
variables
labelled data that may change value
datatypes
type of data stored in variable
dynamic-typing
data type inferred from data stored in variable
identifier
name iof variable
namespace
mapping of names to objects
object
INSTANCE of class that encapsulates attributes and methods (data and behaviour)
__init__
constructor method, defines instance
declare and instantiate
declaring instance (variable) and giving it a value
IDE
provides tool for writing, editing, debugging in one place: integrated development environment
interpreted language
cannot send it live pieces of code
iterable
object that can be looped over, returning elements one at a time “for x in [1, 2, 3], return (x)
string x 3
stringstringstring
isinstance
returns true if object argument is instance of datatype for example isinstance(2,int)
ijk
used for counting and executes code as long as condition remains true
for item in range()
range is iterable, for is for loop
**
exponent
nested variable
if my variable > 20:
…….if my variable < 45:
…………..print(‘within range’)