• 2022-05-29
    Which of the following are NOT valid if/else statements in Python, assuming x and y are defined appropriately:
    A: if x < y: print('foo') else: print('bar')
    B: if x < y and x > 10: print('foo')
    C: if x < y: print('foo'); print('bar'); print('baz')
    D: if x < y: print('foo') elif y < x: print('bar') else: print('baz')