print(chr(x), end="") For this line getting error:- print(chr(x), end="") ^ SyntaxError: invalid syntax And I am using Python 2.7.17