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 trialmattp2
522 PointsWhat is wrong with this code: name = input("Matt")
What is wrong with this code:
name = input("Matt")
name = input("Matt")
1 Answer
Dan Johnson
40,533 PointsNo input request is needed for this. Just your name assigned from a string literal:
name = "Matt"
Outside of this challenge, If you were wanting to make use of the input function to request a name, you could do something like this:
name = input("Enter your name: ")
Where the string passed to input will be used as a prompt to the user.