Q. Predict the output:
tuple_a = 'a', 'b'
tuple_b = ('a', 'b')
print (tuple_a == tuple_b)
(a) 0
(b) 1
(c) False
(d) True
Answer :-
Option: (d) is correct. Because in python if we write two or more characters separated by comma then it becomes a tuple.
ReplyDeleteI think b
No, condition give True or Flase not 1 or 0.
DeleteIt is (c)
ReplyDeletetuple_a is a string. It can't be equal to a tuple
You are wrong. Please run the code in your pc.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )