World's Best AI Learning Platform with profoundly Demanding Certification Programs
Designed by IITians, only for AI Learners.
Designed by IITians, only for AI Learners.
New to InsideAIML? Create an account
Employer? Create an account
Download our e-book of Introduction To Python
4.5 (1,292 Ratings)
559 Learners
Shery Dsouza
a year ago
value = 1000
if ( value == 1000 ) :
print ("Value of expression is 1000")
Value of expression is 1000
no1 = 10
no2 = 50
if(no1 >= no2 ):
print(“ No 1 is greater than No 2”)
else:
print(“No 2 is greater than No 1”)
No 2 is greater than No 1
value1 = 10
value2 = 10
if value1 > value2:
print("value1 is greater")
elif value1 == value2:
print("both are equal")
else:
print("value2 is greater")
both are equal