Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJoshua Carroll
137 PointsStruggling with input out put challenge tast 1 of 2 prompt the user. theres something im not retaining,
Color = input('what is your favorite color? ')
Joseph Yhu
PHP Development Techdegree Graduate 48,637 PointsWhere does the script default to red? This is what I see in the Test Results panel:
Task #1
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
Edit: Never mind, I realized you were talking about the 2nd task of the challenge.
1 Answer
Joseph Yhu
PHP Development Techdegree Graduate 48,637 PointsLook at the instructions: They say they'll respond with their favorite color. That means the inputting is done by the computer.
Joshua Carroll
137 PointsJoshua Carroll
137 PointsAfter deep googles, I found some answers, but without my complete understanding. Why does it default the script to red? Shouldn't I have to input a color for that to be a response. I see no association as to why Red the color is automatically put in. This has me very boggled..