Starting from the following piece of code:
green = "formed after combining blue and yellow".
orange = "formed after combining red and yellow".
colour = str(input("enter a colour"))
if colour == "green":
print(f "The colour {colour}, {green} ")
if colour == "orange": print(f "The colour {colour}, {green} ")
print(f "The colour {colour}, {orange} ")
How can I make it so that after the answer of how the colour would be formed is printed, the user is asked again for the variable "colour" or another imput that asks again if he wants to consult how to form another colour.
That the first time the user wants to know how green is formed and then wants to know how orange is formed, or brown, etc. and you can keep showing him the input until he answers NO or END.
At the end, there should be a message like this. If you don't want to know more colours, press such and such and the program ends.
I understand that you have to use a while but I can't find any satisfactory explanation on youtube.