(adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-2960223314593660", enable_page_level_ads: true }); Program to find if the entered username and password is correct - TecGlance

Header Ads

Program to find if the entered username and password is correct



===================== USERNAME AND PASSWORD ======================



 u="Google"

 p="12345"

 username=raw_input("Enter the username :")

 password=raw_input("Enter the password :")

 if(u==username and p==password):

     print "userword and passsword is correct"

 else:

     print "userword and password do not match"



====================== OUTPUT ================================



 Enter the username :Google

 Enter the password :12345

 userword and passsword is correct



====================== OUTPUT ================================



 Enter the username :Google

 Enter the password :00000

 userword and password do not match



==============================================================

No comments

Powered by Blogger.