Question: 17. Consider the code shown below x = int(input('Enter a number: ')) yint (input('Enter a number: ')) b = x == y if x
17. Consider the code shown below x = int(input('Enter a number: ')) yint (input('Enter a number: ')) b = x == y if x > 10: if b: if b or x > 20: elif x > 6: print('A!') if x > y: else: elif x > 4: print('B!') if y > 4: print('G!') print('C!') print('D!') print('E!') print('F!') a. If the user enters 8 for x and 4 for y, what will print out? 2 b. Is there input that would cause only A! and G! to print out? Give the input, or explain why none exists. c. Is there input that would cause only D! and G! to print out? Give the input, or explain why none exists.
Step by Step Solution
There are 3 Steps involved in it
I will address each part of the question based on the provided Python code a If the user enters 8 for x and 4 for y what will print out To determine t... View full answer
Get step-by-step solutions from verified subject matter experts
