Advertisement
trds

tema1

Nov 24th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.04 KB | None | 0 0
  1. t=(2, 5, 5)
  2. def esteIsoscel(t):
  3.     if len(t)==3:
  4.         if t[0]==t[1] or t[1]==t[2] or t[0]==t[2]:
  5.             return True
  6.         else:
  7.             return False
  8.     else:
  9.         return False
  10. print (esteIsoscel(t))
  11.  
  12. t=(6, 6, 6)
  13. def esteEchilateral (t):
  14.     if len(t)==3:
  15.         if t[0]==t[1] and t[0]==t[2] and t[1]==t[2] and t[1]==t[0] and t[2]==t[0] and t[2] == t[1]:
  16.             return True
  17.         else:
  18.             return False
  19.     else:
  20.         return False
  21. print (esteEchilateral(t))
  22.  
  23. t=(6, 2, 6)
  24. def esteEchilateral (t):
  25.     if len(t)==3:
  26.         if t[0] == t[1] and t[1] == t[2]:
  27.             return True
  28.         else:
  29.             return False
  30.     else:
  31.         return False
  32. print (esteEchilateral(t))
  33.  
  34. t=(5,4,3)
  35. def esteDreptunghic (t):
  36.    if len (t)==3:
  37.        if t[0] * t[0] == t[1] * t[1] + t[2] * t[2]:
  38.            return True
  39.        else:
  40.            return False
  41.    else:
  42.        return False
  43. print (esteDreptunghic (t))
  44.  
  45. t=(7,4,5)
  46. def estePerimetru (t):
  47.     return (7+4+5)
  48. print (estePerimetru(7+4+5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement