Code written while learning Python. Comments are welcomed.