SHARE
TWEET

Untitled

a guest May 19th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. lst = list()
  2. lst.append("4")
  3. lst.append("2")
  4.  
  5. while True:
  6.     uid = input()
  7.  
  8.     if uid == "0":
  9.         print(len(lst))
  10.     elif uid == "1":
  11.         print("Введите элемент для проверки")
  12.         el = input()
  13.         print(el in lst)
  14.     elif uid == "e":
  15.         break
  16.     else:
  17.         print("nothing")
RAW Paste Data
Want to get better at Python?
Learn to code Python in 2017
Top