7from .strategy_entryinformation
import EntryInformation
8from .strategy_showentries_class
import Strategy_ShowEntries_Class
9from .strategy_isortentries
import SortOptions
36 print(
"Strategy Exercise")
39 displaySortedByNameAscending.ShowEntries(entries)
42 displaySortedByAgeAscending.ShowEntries(entries)
45 displaySortedByHeightDescending.ShowEntries(entries)
Represents an individual with a Name, Age, and Height.
Represents a way of displaying a list of EntryInformation objects in a particular order.
def Strategy_Exercise()
Example of using the Strategy Pattern.