Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

if and else in python

# if and else uses in statement.
a=45
b=30
c=75
if a<b:
    print('45 is greater than 30')
else:
    print('c is sum of a and b')
output:
c is sum of a and b
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
6+8 =