Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: convert hex rgb to matplotlib color 
Python :: division in python 
Python :: sum values 
Python :: assign exec function to variable python 
Python :: attributes in python 
Python :: How to Loop Through Tuples using for loop in python 
Python :: handling timezone in python 
Python :: pyqt5 hide button 
Python :: python regeression line 
Python :: python == vs is 
Python :: if in python 
Python :: how to close opened file in python 
Python :: docker compose cron 
Python :: negative slicing in python list 
Python :: api testing python 
Python :: class decorator python 
Python :: explode function in python 
Python :: determinant of 3x3 numpy 
Python :: copy python 
Python :: is login a class in python 
Python :: how to append data in django queryset 
Python :: python - input: integer 
Python :: python remove character from string 
Python :: python floor function 
Python :: set intersection 
Python :: numpy datatime object 
Python :: run python file from cmd 
Python :: create new spreadsheet 
Python :: dictionary with list as values 
Python :: how to write something in python 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =