Range Function In Geeksforgeeks Python Dictionary Append