MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
x = 20
y = 40
z = y if (y > x) else x
print(z)

ID: #3418 Python Operator MCQ 278 views
Question Info
#3418Q ID
Not SetDifficulty
Python Operator MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A True
  • B False
  • C 20
  • D 40
Correct Answer: Option D

Explanation

40

Share This Question

Challenge a friend or share with your study group.