Output: Truthiness and Slicing
Interview insights are lockedSee how often this is asked and which companies asked it with Buncho Pro.What is the output of each snippet?
print(bool([]), bool({}), bool(""), bool(0), bool(None))
print([1, 2, 3] * 2)
a = [1, 2, 3]
print(a[-1], a[-2])
print(a[-:])