Program to demonstrate ternary operators in Python marks = input('Enter the marks: ') print("The result is Pass" if int(marks)>=35 else "The result is Fail")