Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tuple and for loop

name_of_students = ("Jim" , "yeasin" , "Arafat")
print(name_of_students.index('Arafat'))

#adding for loop with tuple

for x in name_of_students:
    print(x)
 
PREVIOUS NEXT
Tagged: #tuple #loop
ADD COMMENT
Topic
Name
6+2 =