##############################################################################
# Python From Scratch
# Author: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2025 - LogiKraft 2025
# Site: https://pythonfromscratch.com
# ISBN: 978-85-7522-949-1 (Paperback), 978-85-7522-950-7 (hardcover), 978-85-7522-951-4 (ebook)
#
# File: chapter 06/exercise-06-04.py.py
##############################################################################
# If we don't check that the list is empty before calling pop(),
# the program stops with an error message, informing that we tried
# to remove an element from an empty list.
# The verification is necessary to control this error and ensure
# the proper functioning of the program.
