-
Notifications
You must be signed in to change notification settings - Fork 2
Programming Fundamentals
mosesnegus edited this page Feb 21, 2018
·
2 revisions
Programming Fundamentals
-
Data Types Int Floats Strings Bool None (nul) Nan (not a number)
Key-value pairs {'a':1, 'b':"foo.txt" } R has lists Python has Dictionaires
Vectors & Datatypes
Collections Data frame dictionaries can have multiple elements
-
Functions functions my_f <- function (){ #stuff }
-
Operators +,-,/,*,%,**,&, | is !
-
For Loops
-
If-else python {elif} R {}
if something is this do that else if (s.else is this) do that
-
Libraries library (repr) import numpy as np
-
Objects vv Instances of classes class example : class chair obj example