python help

Nick14

Senior Member
Nov 29, 2009
152
29
0
Gothenburg
which of these are correct? several can be correct :)
it will print out 61 words :)


1
Code:
j = 0 
while j < 61: 
    s = namn[j] 
    print(s, end=" ")
    j += 1
2
Code:
j = 0 
s = "" 
while j < 61: 
    s += namn[j] 
    j += 1 
print(s)
3
Code:
j = 0 
s = "" 
while j <= 61: 
    s += namn[j] 
    j += 1 
print(s)
4
Code:
j = 1 
while j < 61: 
    print(namn[j], end=" ")
    j += 1
5
Code:
j = 1 
s = namn[0] 
while j < 61: 
    s += namn[j] 
    j += 1 
print(s)