l = {"John","Evan"}
for i in l:
print(i,end=",")
How to get python to output: jhon,evan not: jhon,evan, ?
>Solution :
You can join strings (https://docs.python.org/3/library/stdtypes.html#str.join) to achieve this result:
print(','.join(l))
Will print: jhon,even.