Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Control Flow in Python

# python program to illustrate If else statement
#!/usr/bin/python
  
i = 20
if (i < 15):
    print("i is smaller than 15")
    print("i'm in if Block")
else:
    print("i is greater than 15")
    print("i'm in else Block")
print("i'm not in if and not in else Block")
Source by www.oreilly.com #
 
PREVIOUS NEXT
Tagged: #Control #Flow #Python
ADD COMMENT
Topic
Name
6+7 =