Language
- Natural Language
- Formal Language: are designed for computing purposes.
Execution
- Python executes the code line by line
- Python tries to request memory from os
Purpose of Datatypes
- Datatypes indirectly are used to allocate memory
- Programming Languages are of two types depending on how they deal with datatypes
- Static Typed Language: We need to be explicit about the datatype
- Language Examples: C, C++, C#, Java …
- code examples
c
int i = 5;
float x = 5.1;
- dynamic typed Languages: Intepreter will decide the type based on value passed
- Language Examples: Python, bash
- code examples
python
i = 5
x = 5.1
- Static Typed Language: We need to be explicit about the datatype
Python REPL (Read Evaluate Print Loop)
- Launch your terminal & type python

- Explore assignment and its types

Jupyter Notebook
- A document based environment where code, output, and rich text (Markdown)
- Ensure you have vscode extension of jupyter notebook
- Note: I will be creating jupyter notebooks in Visual Studio Code or Google Colab
Datatypes in python
-
Refer Here for python datatypes

-
Numeric Data types:
- int
- float
- complex

Operators in python
-
Refer Here for operators
-
Refer Here for the notebook with numeric datatypes, arthimetic and assignment operators
References
- Real Python
- Programiz
- Books:
- Prompt:
You are an expert in Python, I'm a beginner and I want you to explain, give examples and exercise on the topics which i would enter
