Upper And Lower Function In Python Practice