
166 Introduction to Computational Models with Python
10.7 EXERCISES
10.1 Design and implement in Python a linked list in which each node rep-
resents a flight stop in a route to a destination. The data in each node
is the airport code (an integer number ). The airline can add or delete
intermedia te flight stops. It can also calcula te and display the number
of stops from the starting airport to the destina tion airport.
10.2 The class defined in this chapter for linked lists defines nodes with only
one link and with o nly one end. Develop a class Stack2 that uses double-
linked lists with two ends. Develop a complete Python program that
creates and manipulates ...