String Size Function In Python Practice