0
Mistake
There is a mistake: words [0] is "Hello," , not "Hello".
5 ответов
+ 5
(It's from Python course > Control Structures > Lists > first page)
words = ["Hello", "world", "!"]
print(words[0])
print(words[1])
print(words[2])
words[0] is 'Hello' not 'Hello,' because the comma is a list separator and not part of the string, as it's outside the quotation marks.
+ 4
@Erik Johanson ... I think this is from the Python Lessons. When posts end up out in Q&A often the only context is the keywords :/
+ 3
Could be a translation typo; English looks okay.
Menu | Feedback should get their attention :)
+ 1
yup, ama noobie here, so i thought i comented the task
0
I assume you called a function thes that splits a string into words. The function that does that very likely separates the string into words by spaces. Spaces are the key thing here.