Compare
user input in python using list:
I need to display the pin number
in the list that are compare to user input using ATM concept.
Example:
lst=[123,456,789]
pin=int(input("Enter
Pin number: "))
if pin in lst:
print("Choose your wanted...\n1.Cash
withdrawal\n2.Cash Deposit")
else:
print("Please enter correct pin
number")
Output:
If pin number correct then
else: