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
Pallavi Dhotre
a year ago
a=10
b=5
c=10
d=5
print(a>b and c>d) # both conditions are true
print(a<b and c>d) #1st condition is true second is false
print(a>b and c<d) #1st condition is false second is True
print(a<b and c<d) #both conditions are false
True
False
False
False
a=10
b=5
c=10
d=5
print(a>b or c>d) # both conditions are true
print(a<b or c>d) #1st condition is true second is false
print(a>b or c<d) #1st condition is false second is True
print(a<b or c<d) #both conditions are false
True
True
True
False
a=10
b=5
c=10
d=5
print(not(a>b)) # actual result of a>b is true
print(not(c<d)) # actual result of c<d is false
False
True