If - Else Structure in Python3 - Coders PlayGround

Learn to code and change the future!

Tuesday, 29 August 2017

If - Else Structure in Python3

Hello friends, lets learn about the if-else structure!

Syntax:

if condition:
    #code
else:
    #code


Check out this program:

x = 5
y = 8

if x > y:
  print ('x is greater than y')
else:
  print ('y is greater than x')
Output
PropellerAds