Literals in Python using for loop