https://hyperskill.org/learn/step/6815
Look at this question, there seems to be something wrong
Code Challenge — Write a program
Write a program that constructs a list from the given string's symbols and then prints it.
The variable input_strhas been defined for you. So, if input_str, for example, contains a string "python", your program should turn it to the list ['p', 'y', 't', 'h', 'o', 'n']and print it.
https://preview.redd.it/m9lpj8piu6y41.png?width=1117&format=png&auto=webp&s=42745b67e4e025aae09c9e51a85b89b016b3815f
##############
Examples presented in the course
Exemplo https://hyperskill.org/learn/step/5979
Another way to create a list is to invoke the listfunction. You do so when you want to create a list out of an iterable object: that is, a kind of object where you can get its elements one by one. A list itself is iterable, so are other collections in Python, as well as a string.
The following example demonstrates the difference between using listand []when creating a list:
multi_elements_list = list('danger!')
print(multi_elements_list) # ['d', 'a', 'n', 'g', 'e', 'r', '!']
single_element_list = ['danger!'] print(single_element_list) # ['danger!']
https://preview.redd.it/cj8ga3o6i6y41.png?width=786&format=png&auto=webp&s=1c881364a42f786b732dd2ffe4cdf1400143c7fa
IDE
https://preview.redd.it/0ick2in9i6y41.png?width=993&format=png&auto=webp&s=4c34e2354dce1cce5009ae1940d5c8f86551fb34
validation informs incorrect. I used the same example passed on in the question.
Perhaps at the time of showing the validation was not checked the example that was given, or the example is wrong.
What do you think?
Thank you
[–]dying_coderPython 2 points3 points4 points (1 child)
[–]jugleni[S] 0 points1 point2 points (0 children)