Friday, July 10, 2020

What is Ternary operator in python?


What is Ternary operator in python

The ternary operator is used for the evaluation of the statement. Conditional statements are shown with the help of the ternary operator.

The operator consists of true or false values along with the statement which needs to be evaluated. 

The ternary operator evaluates the statement and checks for the condition, if the condition is fulfilled then the assigned value is returned and if the condition turns out to be false then the alternate value is returned.

SMART SUBU

Author & Editor

Prof. (Dr) Subroto Chowdhury is a Data science and Technology Enthusiast, Independent Research Practitioner, Education Change Motivator, Ethical Investment Advisor and Analytics Consultant.Analytical Exposition interests him as an instrumentation process to make objective understanding of the complex Phenomenon and other decisions. He believes in making education more affordable, easy and pragmatic.

To Know More Click Here