I have a certain check to be done and if the check satisfies, I want the result to be printed. Below is the code:
import string import codecs import sys y=sys.ar
To convert a list of strings to a single string with spaces in between the lists's items, use ' '.join(seq).
>>> ' '.join(['1','2','3']) '1 2 3'
You can replace ' ' with whatever string you want in between the items.
' '