''' Mission 8 - Answer Bot The answers list can be any number of items, and the items can be any topic the student chooses. NOTE - this solution is slightly different from the code in CodeTrek. This solution strives for consistency in terms and examples, and uses variables instead of skipping to using functions as arguments. Either solution will pass of the goals and end with a working 'bot ''' from codex import * import random from time import sleep # What's for lunch? answers = ["Pizza", "Burger", "Salad", "Burrito", "Nothing", "Pasta"] while True: # Flashy pixels color = random.choice(COLOR_LIST) pixels.set(0, color) color = random.choice(COLOR_LIST) pixels.set(1, color) color = random.choice(COLOR_LIST) pixels.set(2, color) color = random.choice(COLOR_LIST) pixels.set(3, color) sleep(0.25) # Display random answer from list when # Button A is pressed if buttons.was_pressed(BTN_A): my_choice = random.choice(answers) display.print(my_choice, scale=3)