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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Amy Tomey](https://secure.gravatar.com/avatar/1a609d30362adcb9f565bd7f2c4932a7?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Amy Tomey
12,847 Pointseven the right password is wrong...
here is my code... is there is a difference, I can't see it.
import sys
password = input("Please enter the super secret password: ")
attempt_count = 1
while password != 'openseseme':
if attempt_count > 3:
sys.exit("Too many invalid password attempts")
pasword = input("Invalid password, try again: ")
attempt_count += 1
print("Welcome to Secret Town")
what I got was:
treehouse:~/workspace$ python password_checker.py
Please enter the super secret password: 1234567
Invalid password, try again: 234567
Invalid password, try again: openseseme
Invalid password, try again: 1234567
Too many invalid password attempts
What am I missing?
2 Answers
![Chris Freeman](https://uploads.teamtreehouse.com/production/profile-photos/1153532/micro_image.jpg)
Chris Freeman
Treehouse Moderator 68,425 PointsHey Amy Tomey, there is a typo.
The inner input
is assigned to pasword
instead of password
Post back if you need more help. Good luck!!!
![Amy Tomey](https://secure.gravatar.com/avatar/1a609d30362adcb9f565bd7f2c4932a7?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Amy Tomey
12,847 PointsTHANKS! I couldn't see the forest for the trees.