Update ex3.py

fixed line spacing ex3.py