Assertion (A): The expression "HELLO".sort() in Python will give an error.
Reason (R): sort() does not exist as a method/function for strings in Python.
Mark the correct choice:
The sort() method is not defined for string objects in Python. It is used for lists, not strings. Therefore, trying to use sort() on a string object like "HELLO" results in an AttributeError, making both the assertion and reasoning true, with (R) correctly explaining (A).
If vector \( \mathbf{a} = 3 \hat{i} + 2 \hat{j} - \hat{k} \) \text{ and } \( \mathbf{b} = \hat{i} - \hat{j} + \hat{k} \), then which of the following is correct?