Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

adding if statements in pyhton with tuple

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

#adding if statement with tuple

if "yeasin" in name_of_students:
    print("Hello Yeasin")
 
PREVIOUS NEXT
Tagged: #adding #statements #pyhton #tuple
ADD COMMENT
Topic
Name
1+2 =