A

Akash Lawaniya • 9.58K Points
Tutor III

Q. What will be the output of the following code snippet?

Code:
def is_even(number):
  message =  f"{number} is an even number" if number % 2 == 0 else  f"{number} is an odd number"
 return message
print(is_even(54))
  • (A) 54 is an even number
  • (B) 54 is an odd number
  • (C) number is an even number
  • (D) number is an odd number
  • Correct Answer - Option(A)
  • Views: 617
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics