📜  python代码示例中的三元运算符

📅  最后修改于: 2022-03-11 14:46:23.150000             🧑  作者: Mango

代码示例6
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")