---
title: Nova Programming - Sophie
description: 2022 summer programming notes for Sophie
image: https://hackmd.io/_uploads/BJ8lCQ759.png
---
# 22.07.01 Programming - Sophie
###### tags: `Programming` `Python` `Nova Academy`
## Python: If then Else
```python=
#event = "my student can't concentrate in class"
event = ""
positive = True
if (event == "my student can't concentrate in class") & (positive == False):
print("why am I so unlucky?")
print("why I have to deal with this kind of kid")
elif (event == "my student can't concentrate in class") & (positive == True):
print("this is an opportunity for me to practice my compassion")
print("Maybe, I could ask my student why he can't concentrate")
print("Maybe, there's something I can do")
else:
print(" ^.^")
```
## Homework
### 2. Integer and Float Numbers
- [Two Digits](https://snakify.org/en/lessons/integer_float_numbers/problems/two_digits/)
- [Swap Digits](https://snakify.org/en/lessons/integer_float_numbers/problems/swap_digits/)
### 3. If then Else
- [Is Positive](https://snakify.org/en/lessons/if_then_else_conditions/problems/is_positive/)
- [Is Odd](https://snakify.org/en/lessons/if_then_else_conditions/problems/is_odd/)