Lower And Upper Function In Python Practice