Sep-10-2017, 12:50 PM
It may help if you post what OS you are running and the version of python you've installed.
Your code works ok on both python2.7 and python 3.6 on linux
python test.py
('List elements : ', ['xyz', 'zara', 'abc'])
python3 test.py
List elements : ['xyz', 'zara', 'abc']
So I think this could be your python installation.
Your code works ok on both python2.7 and python 3.6 on linux
python test.py
('List elements : ', ['xyz', 'zara', 'abc'])
python3 test.py
List elements : ['xyz', 'zara', 'abc']
So I think this could be your python installation.