How to compare user input in python using list?

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:
  1. 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:

Share:

How to Fix ORA-00054 error in oracle


ERROR:- How to Fix ORA-00054 error in oracle



CAUSE:- if the error occur while you tried to drop a column using alter table  command.

SOLUTION:- wait a few minutes and try the command again.






Share:

Recent Posts

Service Support

Need our help to Learn or Post New Concepts Contact me