0

How to print with comma in the list elements in python

Python 3 .....like 2,3,5,7

2nd Apr 2019, 5:04 AM
Karthik Devillers
Karthik Devillers - avatar
3 Answers
+ 2
print(*list_var, sep=',')
2nd Apr 2019, 5:57 AM
Ankit
Ankit - avatar
+ 1
Here list represents list name ?
2nd Apr 2019, 6:52 AM
Karthik Devillers
Karthik Devillers - avatar
+ 1
Karthik Devillers yes list_var is the list name
2nd Apr 2019, 6:53 AM
Ankit
Ankit - avatar