Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 315 Bytes

if-else_python.md

File metadata and controls

16 lines (12 loc) · 315 Bytes

Python 3.x example for if-else

A simple if-else:

a = 1
if a == 1:
    print('True') #Python 2.x - print 'True'
else:
    print('false') #Python 2.x - print   'false'

This will give the output as follows:

True

Using if-else, you can create many kinds of small command-line applications.