Skip to content

Programming Fundamentals

mosesnegus edited this page Feb 21, 2018 · 2 revisions

Programming Fundamentals

  1. 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

  1. Functions functions my_f <- function (){ #stuff }

  2. Operators +,-,/,*,%,**,&, | is !

  3. For Loops

  4. If-else python {elif} R {}

    if something is this do that else if (s.else is this) do that

  5. Libraries library (repr) import numpy as np

  6. Objects vv Instances of classes class example : class chair obj example

Clone this wiki locally