Python: The "_" identifier in Interactive Sessions

_ in Python

_ in Python: The _ identifier stores the most recently printed expression. This identifier can be used to quickly access the last computed result while working interactively. However, this identifier is only available in interactive sessions, and not in modules.