>>> tts() (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the min price and its day (5) Find the max single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 0 Enter a new list of prices: [40,10,20,35,25] (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the min price and its day (5) Find the max single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 1 Day Price --- ----- 0 40.00 1 10.00 2 20.00 3 35.00 4 25.00 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the min price and its day (5) Find the max single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 3 The average price is 26.0 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the min price and its day (5) Find the max single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 4 The min price is 10 on day 1 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the min price and its day (5) Find the max single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 6 Enter the threshold: 25 There is at least one price above 25 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the min price and its day (5) Find the max single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 6 Enter the threshold: 45 There are no prices above 45 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the min price and its day (5) Find the max single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 7 Buy on day 1 at price 10 Sell on day 3 at price 35 Total profit: 25 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the min price and its day (5) Find the max single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 0 Enter a new list of prices: [40,10,20,35,25,30] (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the min price and its day (5) Find the max single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 5 The max single-day change occurs on day 3 when the price goes from 20 to 35 (0) Input a new list of prices (1) Print the current prices (2) Find the latest price (3) Find the average price (4) Find the min price and its day (5) Find the max single-day change and its day (6) Test a threshold (7) Your investment plan (8) Quit Enter your choice: 8 See you yesterday!