Question: Output: 22. Code: a = 10 b = 20 if a > 0: print('A') b = -1 if b > 0 : print('B') else: print('C'
Output: 22. Code: a = 10 b = 20 if a > 0: print('A') b = -1 if b > 0 : print('B') else: print('C' else: print('D') Output: 23. Code: sl = '12345678 s2 = 'ABCDEFGH x = s1[2:4] + S2 (5:7] print (x) Output: 24. Code: a = 2 while a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
