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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!