Python for Data Science

ipython - Interactive Python Interpreter

Variables

  • type(var_name) returns the type of the variable, e.g. float, string, …

Type Conversion

  • str(var_name)
  • float(var_name)

Math

  • Exponentiation 4**2 will give 16
  • Modulo 18 % 7 will give 4

Generating Output

  • print(string)

Publish Date: 2019-12-02