Hey, I m writting this python program and I need to have the user enter a password. As with all passwords, if it is correct then the program proceeds. if not, then it halts there. What code should I use for this?

The question is not answered, because you provided too little information. Too many answers are possible.
Is this a terminal program, or a gui, or a web application?
How do you want to authorize and authenticate the username/password pair. LDAP, PAM, apache, roll your own?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.