Question #930

What is the output of the code snippet below?
print([5, 1] > [4, 2, 4, 5])

When used against lists, comparison operators compare the first element of each list. Here, as 5 is greater than 4 , True will be printed. (linuxtopia.org/online_books/programming_books/python_prog...)


Comment on Disqus:

Question difficulty: ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต