7. Write a python program to switch a list of character_a as in the output below into a string.
The output is:
character_a = ['p', 'y', 't', 'h', 'o', 'n']
Answer: Changing from a list of character ['p', 'y', 't', 'h', 'o', 'n'] into a string: python
Answer:
character_a = ['p', 'y', 't', 'h', 'o', 'n'] new_string = ''.join(character_a) print("Changing from a list of character ['p', 'y', 't', 'h', 'o', 'n'] into a string:", new_string)
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)