Added ex24.py

Combining different python commands