LogiQuest
Back to Control Flow
9

What is the output of the following code?

x = 5
result = 'even' if x % 2 == 0 else 'odd'
print(result)
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.