Advertisements
Advertisements
Question
Write a logical expression corresponding to the following statement in Python and evaluate the expressions (assuming variables num1, num2, num3, first, middle, and last are already having meaningful values):
The string ‘middle’ is larger than the string ‘first’ and smaller than the string ‘last’.
One Line Answer
Advertisements
Solution
(middle > first) and (middle < last)shaalaa.com
Is there an error in this question or solution?
