PREDICT THE OUTPUT:
print ((34<79) and (10.2>10) )
Answers
Answered by
3
- Predict the output of the following code.
print((34<79)and(10.2>10))
The and operator is a logical operator. If all the conditions are true then only the expression will return true otherwise return false.
Now,
34<79 is true as well as 10.2>10 is true.
So, It will print
true.
true.
Answered by
2
Predict The Output of following Syntax of Python language:-
print ((34<79)and(10.2>10) )
_______________________________
In programmings, Logical and returns true if both operands are in true condition otherwise return false.
______________________________
print ((34<79)and(10.2>10) )
34<79 ,which is true
10.2>10 , which is also true
therefore,
((34<79)and(10.2>10) ) is true
hence,
true
Similar questions