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 trialAndy McDonald
Python Development Techdegree Graduate 13,801 PointsI didn't seperate the lines and I'm wondering why it didn't work.
Here's my code, it might be helpful for me to know why this doesn't work.
TODO: Prompt the user for parts of speech and store them in variables
verb = input("Select a verb ") noun = input("Select a noun ") adjective = input("select an adjective ")
TODO: Output the template to the screen with the blanks filled out with what the user stated
print("I enjoy practice! I find it helps me to", verb, "better. Without practice, my", noun, "would probably not even work. My code is getting more", adjective, "every single day!")
3 Answers
Peter Vann
36,427 PointsHi Andy!
I ran this:
verb = input("Select a verb: ")
noun = input("Select a noun: ")
adjective = input("select an adjective: ")
print("I enjoy practice! I find it helps me to", verb, "better. Without practice, my", noun, "would probably not even work. My code is getting more", adjective, "every single day!")
Here:
And it worked fine...
(Make sure to run it with python3, with regular python you need to use raw_input)
I hope that helps.
Stay safe and happy coding!
master ohms
Web Development Techdegree Student 136 Pointsthis looks absolutely fine , give it one more go with saving
Adam Dobbins
125 Pointsuse separate print lines to separate each sentence print("I enjoy practice! I find it helps me to", verb, "better.") print("Without practice, my", noun, "would probably not even work") print("My code is getting more", adjective, "every single day!")