Computer Science, asked by aryaman2007satapathy, 30 days ago

Write the python statement for the following questions. First one is solved for reference.
a. Age is greater than and equal to 18. (ans.- age>=18)
b. 65 is not equal to 55
c. 12 is smaller than 9
d. 16 is not equal to 60
e. number is greater than 0.

Answers

Answered by anindyaadhikari13
4

ANSWERS.

  1. age >= 18
  2. 65 != 55
  3. 12 < 9
  4. 16 != 60
  5. number > 0

EXPLANATION.

  1. To check whether age is greater than or equal to 18, we can use 'greater than or equal to' operator, i.e., age >= 18
  2. To check whether two values are equal we can use == operator and we use != operator when we have to check whether two quantities are not equal.
  3. Using '<' operator, we can check whether 12 is less than 9 or not.
  4. This question is similar to question 2.
  5. Here, we have user '>' operator to check whether the value of 'number' is greater than 0 or not.
  6. The result of these expression will be either True or False.
Answered by s13075canujsehgal127
1

Answer:

hop it help PLS mark BRAINLIST PLS mark BRAINLIST PLS mark BRAINLIST PLS mark BRAINLIST PLS mark

Attachments:
Similar questions