/PythonForDatascience

Series of Python Code snippets for quick reference

Primary LanguageJupyter Notebook

PythonForDatascience

Series of Python Code snippets for quick reference MODULE 1.2 Python KEYWORDS: Keywords are the reserved words in python We can't use a keyword as variable name, function name or any other identifier Keywords are case sensitive PYTHON IDENTIFIERS: Identifier is the name given to entities like class, functions, variables etc. in Python. It helps differentiating one entity from another. ??) Rules for Writing Identifiers: ***Identifiers can be a combination of letters in lowercase (a to z) or uppercase (A to Z) or digits (0 to 9) or an underscore (_). ***An identifier cannot start with a digit. 1variable is invalid, but variable1 is perfectly fine. ***Keywords cannot be used as identifiers MODULE 1.4 Consists of

  1. Variables Variable Assignments Multiple Assignments
  2. Storage of Variables
  3. Data Types Integers 10 Float 10.5 Complex Numbers 10 +5j Boolean (True, False)
  4. Python Strings Strings Indexing a[0] Slicing from:To
  5. Python Sequences: LISTS TUPLES SETS DICTIONARIES Conversion between Data types int() float() str() set() list()