0
Why does not split the word from string list by letter by letter??? When the user input any word from list then will show split
When the players 1 input Python 'p', 'y', 't', 'h', 'o', 'n' https://code.sololearn.com/cRZ3QZfr1rs8/?ref=app
1 Réponse
0
list("python") converts the string to a list of characters, thereby it splits the string.
list(["python", "python2"]) doesn't do anything as the argument already is a list (list of strings)
When you want to use the player input, you should store it to a variable, like
player_input = input()
print(list(player_input))