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

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

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