Modify the program to work with two lines. To make your job easier, consider command S for serving line 1 and T for servicing line 2. The same for the arrival of customers: A for line 1 and B for line 2.
Answer:
##############################################################################
# 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-17.py.py
##############################################################################
# As we use the bubble sort method, in the first verification, 3, 3 are considered in the correct order.
# When we check the second 3 with 1, a swap occurs.
# The same will happen with the first 3, but only in the next iteration. Notice that 1 rises to the first position
# like an air bubble in water.