Python read from list -


i have question lists in python , how print them. of following code snippets prints 7 words found in list "words"? have compiled , tried still don't know of snippets correct.

1. = 0  while < 7:      print(words[i], end=" ") += 1  2. = 0  while < 7:      print(words[i], end=" ")     += 1 3. = 1  while < 7:      print(words[i], end=" ")     += 1  4. = 0  sum = ""  while < 7:      sum += words[i]      += 1  print(sum)  5. = 0  sum = ""  while <= 7:      sum += words[i]      += 1  print(sum) 

if list looks this, words = ["a","b","c"..],

all have iterate on them using for statement,

for in words:     print 

that should print out words:

a b c .... 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -