Answers for "adding if statements and for loop in pyhton with tuple"

0

adding if statements and for loop in pyhton with tuple

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)
#adding if statement with tuple
if "yeasin" in name_of_students:
    print("Hello Yeasin")
Posted by: Guest on February-24-2022
0

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")
Posted by: Guest on February-24-2022

Python Answers by Framework

Browse Popular Code Answers by Language