What is the use of the "lt" and "gt" methods in Python?