Skip to content

Instantly share code, notes, and snippets.

  • Save OpnSrcConstruction/326b0f06c09e53712e8bf1cc3d6199d2 to your computer and use it in GitHub Desktop.
Save OpnSrcConstruction/326b0f06c09e53712e8bf1cc3d6199d2 to your computer and use it in GitHub Desktop.
Python example: if-elif-else choices #if #elif #else #python
'''
@author: OpnSrcConstruction
'''
x = 5
if x == 1:
print('x is equal to 1')
elif x == 3:
print('x is equal to 3')
elif x == 5:
print('x is equal to 5')
else:
print('x is not equal to 1, 3, or 5')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment