Answers for "how to print a list and string in python"

2

Print list in python

sample_list = ['Python', 'with', 'FavTutor']

for i in range(0, len(sample_list)):

     print(sample_list[i])
Posted by: Guest on November-15-2021
3

python print list as string

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

Code answers related to "how to print a list and string in python"

Python Answers by Framework

Browse Popular Code Answers by Language