Computer Science
Find the output generated by following code fragments :
t1 = (3,4)
t2 = ('3' , '4')
print(t1 + t2 )
Related Questions
Find the output generated by following code fragments :
t2 = (4, 5, 6) t3 = (6, 7) t4 = t3 + t2 t5 = t2 + t3 print(t4) print(t5)
Find the output generated by following code fragments :
t3 = (6, 7) t4 = t3 * 3 t5 = t3 * (3) print(t4) print(t5)
What will be stored in variables a, b, c, d, e, f, g, h, after following statements ?
perc = (88,85,80,88,83,86) a = perc[2:2] b = perc[2:] c = perc[:2] d = perc[:-2] e = perc[-2:] f = perc[2:-2] g = perc[-2:2] h = perc[:]
What does each of the following expressions evaluate to? Suppose that T is the tuple containing :
("These", ["are" , "a", "few", "words"] , "that", "we", "will" , "use")
T[1][0: :2]
"a" in T[1][0]
T[:1] + [1]
T[2::2]
T[2][2] in T[1]