Title: if and if else
Slug: if_and_if_else_statements
Summary: if and if else
Date: 2016-05-01 12:00
Category: Python
Tags: Basics
Authors: Chris Albon
In [10]:
conflict_active = 1
In [17]:
if conflict_active == 1:
print('The conflict is active.')
In [18]:
if conflict_active == 1:
print('The conflict is active.')
else:
print('The conflict is not active.')
In [19]:
if conflict_active == 1:
print('The conflict is active.')
elif conflict_active == 'unknown':
print('The status of the conflict is unknown')
else:
print('The conflict is not active.')