a = True
b = False
C = False
if a or band c:
print ("NARESHIT")
else:
print ("nareshit")
A) NARESHIT
B) nareshit
C) naresh it
D) NARESH IT
Answers
Answered by
7
Answer
- NARESHIT
Corrected Códe:-
a = True
b = False
C = False
if a or b and c:
print ("NARESHIT")
else:
print ("nareshit")
Well, let's see the working...
Dry Run:-
- a= True
- b= False
- c= False
Now, the main part is in if-else conditions
if a or b and c:
that means if True or False and False
so lets solve this Boolean value and see what is the result...
True or False and False
= True or False
= True
so..
if True:
print ("NARESHIT")
else:
print ("nareshit")
Therefore, Correct output will be NARESHIT
Similar questions