<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 6 Conditional Loops
Loops
Loops are a big deal in computing and robotics! Think about the kinds of tasks that computers and robots often get used for
Step1:  If you've done it right, your output should look like this
Step2:  If you've done it right, your output should look like this
<ASSISTANT_TASK:>
Python Code:
word = input("What is the magic word? ")
while word!="abracadabra":
    word = input("Wrong. Try again. What is the magic word? ")
print("Correct")
Explanation: 6 Conditional Loops
Loops
Loops are a big deal in computing and robotics! Think about the kinds of tasks that computers and robots often get used for:
- jobs that are dangerous
- jobs where accuracy is important
- jobs that are repetitive and where a human might get bored!
Loops are basically how a computer programmer can make the computer do the same thing over and over again. There are two main kinds of loops
* Conditional Loops
* Fixed Loops
Simplest Conditional Loop
The most basic conditional loop is one that goes on forever. Think about a task where you do the same sequence of operations endlessly - for example production line work often involves seemingly endless loops:
* pick up product from conveyor belt
* check product looks OK
* put product in packing crate
Factories often use robots to do the kind of repetitive work pictured above - for around £20,000 a reconditioned robotic system could pack these crates.
In Python we can use a while loop to keep doing the same thing over and over:
python
    while True:
        pick_up_product()
        check_product()
        put_product_in_crate()
The part in brackets () is called the condition. In this case, we have set the condition to be True permananently. This means the loop would go on forever, which is sometimes what you want. Later we will see how if the condition in the brackets () ever stops being True then the loop would stop.
A Conditional Loop with an Actual Condition!
A conditional loop is repeatedly carried out a block of code until a condition of some kind is met.
You are now going to run these two small programs. They should be ready to run, you don't need to edit them.
Run the first program. Once running, you should see that it repeatedly runs its code block until you supply the magic word. Get it wrong first, then enter the magic word
End of explanation
happy = input("Are you happy? ")
while not(happy in ["yes","no"]):
    print("I did not understand. ")
    happy = input("Are you happy? ")
Explanation: If you've done it right, your output should look like this:
What is the magic word? Foobar
Wrong. Try again. What is the magic word? abracadabra
Correct
In Python != means is not equal to
Run the second program. This one will keep repeating its code block until you type in one of the words in the list ["yes", "no"].
End of explanation
happy = input("Are you happy? ")
while not(happy in ["yes","no"]):  #Add to this list of words here
    print("I did not understand. ")
    happy = input("Are you happy? ")
Explanation: If you've done it right, your output should look like this:
Are you happy? Naw.
I did not understand. 
Are you happy? aye
I did not understand. 
Are you happy? yes  
By adding some more words to the list ["yes", "no] edit the program below to accept "Yes", "No" and test it by running it a few times
End of explanation
<END_TASK>