Answers for "printing list as string python"

3

python print list as string

list1 = ['1', '2', '3']
str1 = ''.join(list1)
Posted by: Guest on May-11-2020
3

print list in one line python

# using * operator
scores = [11, 12, 13, 14, 15, 16]
print(*scores)
Posted by: Guest on May-14-2020

Python Answers by Framework

Browse Popular Code Answers by Language