• Tutorials
  • DSA
  • Data Science
  • Web Tech
  • Courses
July 31, 2024 |17.4K Views

Convert a list of characters into a string in Python

Description
Discussion

Given a list of characters, merge all of them into a string. Examples:

Input : ['g', 'e', 'e', 'k', 's', 'f', 'o', 
            'r', 'g', 'e', 'e', 'k', 's']
Output : geeksforgeeks

Input : ['p', 'r', 'o', 'g', 'r', 'a', 'm', 
                       'm', 'i', 'n', 'g']
Output : programming

Convert a list of characters into a string in Python  : https://www.geeksforgeeks.org/python-convert-list-characters-string/