You are on linux so I expect you have both python2 and python3.
python
is associated with python2 version
I guess you are running this code with python2. Run it with python3. Use
python3
instead of just
python
.
$ python
Python 2.7.12 (default, Apr 15 2020, 17:07:12)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> hello = "Hello this is"
>>> print(hello, "code")
('Hello this is', 'code')
$ python3.7
Python 3.7.7 (default, Mar 10 2020, 17:25:08)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> hello = "Hello this is"
>>> print(hello, "code")
Hello this is code
on python2 print is a statement, so you in fact you print a tuple
$ python
Python 2.7.12 (default, Apr 15 2020, 17:07:12)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> hello = "Hello this is"
>>> print hello, "code"
Hello this is code
python2 support ended, so use python3.
And as Larz suggested - it's better to use string formatting - f-strings or str.format() method