Introduction
- Parallelograms are 4 sided shapes in which each pair of opposite sides are parallel:
- Parallelograms are just slanted rectangles:
- We can convert a paralellogram back into a rectangle without affecting it's area.
- This means that the area of a paralellogram is simply it's base multiplied by it's height:
Code (Python)
base = 4
height = 3
area = base * height
print(area) # prints 12