Range Function in python - Codanics