Assert in the code

Report a typo

Analyze the code. Match inputs with outputs.

x = int(input("Enter the first number: "))
y = int(input("Enter the second number: "))
d = x / y
assert d > 5, "Your number is less than 5 or equal to 5!"
assert d < 14, "Your number is more than 14 or equal to 14!"
print("Your number is", d)
Match the items from left and right columns
75
25
66
3
12
2
32
4
Your number is 8.0
AssertionError: Your number is more than 14 or equal to 14!
Your number is 6.0
AssertionError: Your number is less than 5 or equal to 5!
___

Create a free account to access the full topic