ATM programming in python

ATM LOGIN PROGRAMMING IN PYTHON


today is a thursday so that i will provide you a code for bank application ....
in every  thursday  i will do that .

ATM LOGIN


here is a code :-

bank={"Abhishek123":1234,"aditya786":9000,"vivek123":5678}
username=input("\n please enter the username :")
password=int(input("\n please enter the pin :"))
if username in bank:
    if bank[username]==password:
        print("you are authorized")
    else:
        print("wrong password enterd")
else:
    print("you are not authorized") 


OUTPUT:-

when you enterded proper username and password



next output when we enter the correct username but worng password

next output when the both username and password is worng entered


so this is our validation code for just check either the user is authorized or not.
if you want this type of content then give me hint in comment section.

please share it with your friend and who love programming .....

##################################################################################
thank you..
here is the suggestion for you..
if you are the python lover than  this book  is only for you

 
this Python book : For Beginners: A Crash Course Guide To Learn Python in 1 Week (coding, programming, web-programming, programmer
strongly suggest you guys if you are new in python programming or you want to revise your self about python this book is sufficient for you..

so guys thank you for visiting ..
 

Comments

Popular posts from this blog

Python Class and Objects

Fibonacci series in python

exception handling in python