MCQs > IT & Programming > Python > How is the ternary operator written in Python 2.5+?

Python MCQs

How is the ternary operator written in Python 2.5+?

Answer

Correct Answer: 'equal' if a == b else 'not equal'

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Python MCQ Questions

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it