The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #255
print(list("hello"))
When creating a list from a string with the list() function, a new list is returned where every character on the string is an element. (programiz.com/python-programming/methods/built-in/list)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) October 30, 2020
print(list("hello"))
['h', 'e', 'l', 'l', 'o']
['hello']#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅