World's Best AI Learning Platform with profoundly Demanding Certification Programs
Designed by IITians, only for AI Learners.
Designed by IITians, only for AI Learners.
New to InsideAIML? Create an account
Employer? Create an account
You can simply use join() for this in the print function
list1 = ["India", "is","my","country"] str1 =" ".join(list1) print(str1) #output India is my country type(str1) #output str