0
words = ["Hello", "world", "!"] print(words[0]) print(words[1]) print(words[2]) how todo?
5 Réponses
+ 7
I assume that you don't want to hardcode the output for each element in your list. So use a for loop to iterate over the list and print one element after the other. But therefore you need some basics from python. I recommend you to go through the python tutorial, where everything you need for this task is shown.
+ 1
print(*words)
0
do what ? please be clear on what you're asking.
0
I want run this python program using a lists so, how can do this?
0
in SL ?
go to `{} code` tab. press + button. choose python from the list
put your code there