Computer Science, asked by tyagi1313, 7 months ago

PREDICT THE OUTPUT:
print ((34<79) and (10.2>10) )​

Answers

Answered by anindyaadhikari13
3

\star\:\:\:\bf\large\underline\blue{Question:-}

  • Predict the output of the following code.

\star\:\:\:\bf\large\underline\blue{Solution:-}

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.

\star\:\:\:\bf\large\underline\blue{Output:-}

true.

Answered by Vyomsingh
2

\large\bf\green{Question➠}

Predict The Output of following Syntax of Python language:-

print ((34<79)and(10.2>10) )

_______________________________

\large\bf\red{ ''Logical\:and''\: operator}

In programmings, Logical and returns true if both operands are in true condition otherwise return false.

______________________________

\large\bf\orange{Process➠}

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,

\bf\blue{Output:-}

true

Similar questions