Advertisement
stachopresident

slownik muj

Dec 11th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.38 KB | None | 0 0
  1. slang = {"404": "nie znaleziono strony",
  2.          "serczing": "szukanie",
  3.          "haker": "eliot bicz",
  4.          "bicz": "suka suko",
  5.          "wtf": "debilu nie wiesz co to jest?"}
  6.  
  7. choise = None
  8. while choise != "0":
  9.     print("0- end \n 1- find \n 2- add \n 3- change definition \n 4- delete")
  10.  
  11.     choise = input("wybierasz: ")
  12.  
  13.     if choise=="0":
  14.         print("elo kurwa")
  15.     elif choise=="1":
  16.         term = input("czego kurwa nie wiesz ")
  17.         if term in slang:
  18.             defka = slang[term]
  19.             print("\n", term, "to ", defka)
  20.         else:
  21.             print("pojebalo cb")
  22.     elif choise=="2":
  23.         term = input("co ci dodac pizdo: ")
  24.         if term not in slang:
  25.             defka = input("\nPisz kurwa: ")
  26.             slang[term] = defka
  27.             print("\nDodalem", term)
  28.         else:
  29.             print("to juz jest pajacu")
  30.     elif choise== "3":
  31.         term = input("co zmienic: ")
  32.         if term in slang:
  33.             defka = input("na co to zmienic: ")
  34.             slang[term] = defka
  35.             print("\n", term, "zmieniony")
  36.         else:
  37.             print("nie ma tego ")
  38.     elif choise == "4":
  39.         term = input("co usunac ")
  40.         if term in slang:
  41.             del slang[term]
  42.             print("usunalem ", term)
  43.         else:
  44.             print("nie ma pajacu")
  45.     else:
  46.         print("to nie wybor slepaku")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement