Advertisement
STANAANDREY

lsd2 1

Oct 7th, 2022
713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. def valori_distincte(a, b, c):
  2.     eq = lambda x, y : x == y
  3.     if eq(a, b) and eq(b, c):
  4.         print("toate argumentele sunt egale")
  5.     elif eq(a, b):
  6.         print("arg 1 si 2 sunt egale")
  7.     elif eq(a, c):
  8.         print("arg 1 si 3 sunt egale")
  9.     elif eq(b, c):
  10.         print("arg 2 si 3 sunt egale")
  11.     else:
  12.         print("toate argumentele sunt distincte")
  13.  
  14. a = input("a=")
  15. b = input("b=")
  16. c = input("c=")
  17. valori_distincte(a, b, c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement