Python Puzzle
In this puzzle, you have four light bulbs and three buttons. The 1st button works with the 1st light bulb, the 2nd button works with the 2nd and the 3rd light bulbs, and the 3rd button works with the 1st and the 4th light bulbs.
Note that a button changes the states of corresponding light bulbs. When you click a button, if a light bulb is on, it will be off, and if a light bulb is off, it will be on. The goal of the puzzle is to turn on all the light bulbs using the buttons.
lightList = [False, False, False, False]
Write a condition of the while-loop statement.
In this part, you need to write a correct condition of the while-loop statement so that the program runs continuously until the goal of the puzzle is achieved. The goal of the puzzle is to turn on all the lights. You need to think about what condition makes the program run until all the lights are on.
When you write the condition, you need to use the given LightList list in the program where a state of each light (on/off) is described using Boolean data type. Each light corresponds to each slot of lightList. For example, if the 1 st light is on, lightList[0] has True, and if the 2 nd light is off, lightList[1] has False. At the beginning of lightPuzzle.py, all the slots of lightList have False ( lightList=[False, False, False, False] ), and it means that all the lights are off initially.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme