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
4
ANSWERS.
- age >= 18
- 65 != 55
- 12 < 9
- 16 != 60
- number > 0
EXPLANATION.
- To check whether age is greater than or equal to 18, we can use 'greater than or equal to' operator, i.e., age >= 18
- 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.
- Using '<' operator, we can check whether 12 is less than 9 or not.
- This question is similar to question 2.
- Here, we have user '>' operator to check whether the value of 'number' is greater than 0 or not.
- The result of these expression will be either True or False.
Answered by
1
Answer:
hop it help PLS mark BRAINLIST PLS mark BRAINLIST PLS mark BRAINLIST PLS mark BRAINLIST PLS mark
Attachments:
Similar questions