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:
Python strings lack a defined sort() method; this method is exclusive to lists. Consequently, attempting to sort a string, such as "HELLO", by calling sort() will trigger an AttributeError. Both the assertion (A) and the reasoning (R) are accurate, and (R) provides a correct explanation for (A).