5.1. Exercises
Output or Error with Operations
Will the following operations result with an output or an error?
['One', 'Two', 3] + (4, 'five', 6)tuple(['One', 'Two', 3]) + (4, 'five', 6)dictionary1 = {1: 'one', 2: 'two'}
dictionary2 = {3: 'three', 4: 'four'}
dictionary1 + dictionary2sum(['nine', 'ten', 'eleven', 'twelve'])'The monster under my bed' + [1, 2.0, 3, 4.5]True or False with Boolean Operators
Would the following result in a True of False value?
('hotels' != 'homes') and 50 < 5000not ('hotels' != 'homes') not not ('hotels' != 'homes')