---
# System prepended metadata

title: 'Learn how to code in Python3 : A hands on approach'

---

# Learn how to code in Python3 : A hands on approach
### 1. The python interpreter 
```
- Python IDE
- Interative jupyter notebook
```
### 2. Python3 primitive data types
```
- Text Type:	str
- Numeric Types:	int, float, complex
- Sequence Types:	list, tuple, range
- Mapping Type:	dict
- Set Types:	set, frozenset
- Boolean Type:	bool
- Binary Types:	bytes, bytearray, memoryview
- None Type:	NoneType
```
### 3. Write your first hello world
```
- type() Function
- print() Function
```

### 4. Conditional statements
```
- if Statements
- for loop
- The range() Function
- break and continue Statements, and else Clauses on Loops
- pass Statements
- match Statements
```
### 5. Defining Functions
```
- parameters, arguments 
- Default argument values
- Special parameters
- Example of functions
- Lamda expressions 
```
### 6. Python3 data structures 
##### - Built-in datastructures : 
    - Lists
    - Tuple
    - Dictionay
##### - User defined data structures
    - Arrays vs.List
    - Stack 
    - Queue 
    - Trees 
    - Linked Lists 
    - Graphs 
    - HashMaps 
### 7. Modules
```
- Executing modules as scripts
- The Module Search Path
- “Compiled” Python files
- Standard Modules
- The dir() Function
- Packages
- Importing * From a Package
- Intra-package References
- Packages in Multiple Directories
```
### 8. Input and output
- String formatting
```
- The formated string literal
- The string format() method
```
- Reading and writing to a file
```
- Methods of File Objects
- Saving structured data with json
```
### 9. Errors and exceptions
```
- Syntax errors
- Exceptions
- Handling Exceptions
- Raising Exceptions
- Exception Chaining
- User-defined Exceptions
- Defining Clean-up Actions
- Predefined Clean-up Actions
```
### 10. Classes
```
- Class Definition Syntax
- Class Objects
- Instance Objects
- Method Objects
- Class and Instance Variables
```
- Inheritance
```
- Multiple Inheritance
- Private Variables
- Odds and Ends
- Iterators
- Generators
- Generator Expressions
```
### 11. Brief tour on useful standard libraries
```
- File Wildcards
- Command Line Arguments
- Error Output Redirection and Program Termination
- String Pattern Matching
- Mathematics
- Internet Access
- Dates and Times
- Data Compression
- Performance Measurement
- Quality Control
- Batteries Included
```



