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 trial

Python My Solution

Benjamin Deollos
Benjamin Deollos
2,049 Points

why not place holders

So during this exercise you are placing the variable directly into the print method. Where in the course you are using place holders i.e {}. Is there a reason that you are doing it with the variable instead of the place holders?

You can also use place holder. Both function are alternative of each other.

verb = input("Enter a verb: ")
print("{}".format(verb))

Or

verb = input("Enter a verb: ")
print(verb)

both function working same

2 Answers

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

Hi Benjamin Deollos !

At this point in the course, I had not yet shown placeholders. This is meant to be right after Stage 1. You are correct, you could definitely use them, or even fstrings!

As long as it works, it works!

That make sense?

I believe using placeholders does not allow the user to write their own verb, noun and adjective.