Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Use len with list

#i will print out first choice, but len specifies length
#and range specifies total emcompassed length.

students = ["Hermione", "Harry", "Ron"]

for i in range(len(students)):
	print(students[i])
 
PREVIOUS NEXT
Tagged: #Use #len #list
ADD COMMENT
Topic
Name
2+2 =