in function for a string and a tuple : Tuple In « Tuple « Python






in function for a string and a tuple

in function for a string and a tuple
S, T = "lumberjack", ("and", "I'm", "okay")

for x in S: print x,


for x in T: print x,



           
       








Related examples in the same category

1.Print each element in the tuplePrint each element in the tuple
2.Test for membership with inTest for membership with in