Advertisements
Advertisements
Question
Consider the given expression:
5<10 and 12>7 or not 7>4
Which of the following will be the correct output if the given expression is evaluated?
Options
TRUE
FALSE
NONE
NULL
MCQ
Solution
TRUE
Explanation:
5<10 and 12>7 or not 7>4
True and True or not True
True and True or False
True or False
True
shaalaa.com
Function Returning Values
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Write a function INDEX_LIST(L), where L is the list of elements passed as arguments to the function. The function returns another list named ‘indexList’ that stores the indices of all Non-Zero Elements of L.
For example:
If L contains [12, 4, 0, 11, 0, 56]
The indexList will have - [0, 1, 3, 5].
Which of the following is a valid keyword in Python?