📜  if else elif python 代码示例

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

代码示例2
# if,elif,else in statement.
m=1
n=2
p=3
if nm,hence not satisfied)
elif p!=m+n:
    print('p is not equal to  sum of m and n')#(p==m+n, hence not satisfied)
else:
    print('not satisfied')
output:
not satisfied
................................................................................