Question: Write a expression for the following and print the output for the expression: Eg . 3 is greater than 2 0 Expression: 3 > 2

Write a expression for the following and print the output for the
expression:
Eg.
3 is greater than 20
Expression: 3>20
Output: False
i.-5 is less than 5 and 5 is less than or equal to 25.(Hint: use compound expression)
ii.123.123 is greater than 123.0 and 3.14 is not equal to \pi .(Hint: use compound
expression. Use math module to get value of \pi .)
iii. Cube of 2 is equal to 8
iv. Cube root of 27 is greater than square root of 9(Hint: you can either use exponential
operator or power function from math module)
v.4 multiply by 2 and bitwise left shift of 4 by 1 bit (Hint: use logical and to combine)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!