Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 307 Bytes

File metadata and controls

13 lines (12 loc) · 307 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.