Answers for "in python, a list of characters is the same as a string."

0

in python, a list of characters is the same as a string.

# No !
# A string looks like this:
string = "python"
# While a liste of characters looks like
liste_characters = ['p', 'y', 't', 'h', 'o', 'n']

# But you can switch a string to a list by using
list(string)
Posted by: Guest on May-03-2021

Code answers related to "in python, a list of characters is the same as a string."

Python Answers by Framework

Browse Popular Code Answers by Language