How to make a count in python so that the program ends after a particular number of counts?
<p>I'm a newbie and i need to know how to modify a password guessing program to keep track of how many times the user has entered the password wrong. If it has been entered more than 3 times then it should print " This seems to be complicated" and the program should be ended.
The password guessing program is</p>

<pre><code>password="abcd"
while password != "password"
       password = raw_input("Password:")
print "Welcome in"
</code></pre>

<p>How should i modify this program to get one as i mentioned earlier? Could anyone guide me? Thank you.</p>
