mohan AbdulPro Student 972 Points
answering 1st prompt, the teacher put the question in the text editor and answers in console. i have no console in task.
so how do I answer the first prompt?
favorite_color = input("what is your favorite color?") purple print("the color", favorite_color, "is a great color!")
Jeff MudayTreehouse Moderator 23,698 Points
You are correct in identifying that there are two different contexts under which you can execute the Python code. These contexts can be a Python script (run by the Python interpreter), or the Python REPL (this is just a fancy term for a Python interactive shell).
The challenge is simply asking you to input the Python script. You don't need to supply the input line "purple". The script below will pass the challenges.
favorite_color = input("what is your favorite color?") print("the color", favorite_color, "is a great color!")
The automated grader of challenges supplies the input and unit tests.
Good luck with your Python journey, it is a great and useful language!