Welcome to KISHORE talks
### Basics
- **Syntax**: Indentation matters; use consistent spaces or tabs.
- **Comments**: Use `#` for single-line comments and `"""` for multi-line.
### Data Types
- **Primitive Types**: `int`, `float`, `str`, `bool`
- **Collections**:
- **List**: Ordered, mutable: `my_list = [1, 2, 3]`
- **Tuple**: Ordered, immutable: `my_tuple = (1, 2, 3)`
- **Set**: Unordered, unique: `my_set = {1, 2, 3}`
- **Dictionary**: Key-value pairs: `my_dict = {'key': 'value'}`
### Control Flow
- **Conditional Statements**:
```python
if condition:
# code
elif another_condition:
# code
else:
# code
```
- **Loops**:
- **For Loop**:
```python
for item in iterable:
# code
```
- **While Loop**:
```python
while condition:
# code
```
### Functions
- **Defining Functions**:
```python
def my_function(param1, param2):
# code
return result
```
### Error Handling
- **Try-Except Block**:
```python
try:
# code
except ExceptionType:
# handle error
```
### Basics
- **Syntax**: Indentation matters; use consistent spaces or tabs.
- **Comments**: Use `#` for single-line comments and `"""` for multi-line.
### Data Types
- **Primitive Types**: `int`, `float`, `str`, `bool`
- **Collections**:
- **List**: Ordered, mutable: `my_list = [1, 2, 3]`
- **Tuple**: Ordered, immutable: `my_tuple = (1, 2, 3)`
- **Set**: Unordered, unique: `my_set = {1, 2, 3}`
- **Dictionary**: Key-value pairs: `my_dict = {'key': 'value'}`
### Control Flow
- **Conditional Statements**:
```python
if condition:
# code
elif another_condition:
# code
else:
# code
```
- **Loops**:
- **For Loop**:
```python
for item in iterable:
# code
```
- **While Loop**:
```python
while condition:
# code
```
### Functions
- **Defining Functions**:
```python
def my_function(param1, param2):
# code
return result
```
### Error Handling
- **Try-Except Block**:
```python
try:
# code
except ExceptionType:
# handle error
```