Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t=(2, 5, 5)
- def esteIsoscel(t):
- if len(t)==3:
- if t[0]==t[1] or t[1]==t[2] or t[0]==t[2]:
- return True
- else:
- return False
- else:
- return False
- print (esteIsoscel(t))
- t=(6, 6, 6)
- def esteEchilateral (t):
- if len(t)==3:
- 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]:
- return True
- else:
- return False
- else:
- return False
- print (esteEchilateral(t))
- t=(6, 2, 6)
- def esteEchilateral (t):
- if len(t)==3:
- if t[0] == t[1] and t[1] == t[2]:
- return True
- else:
- return False
- else:
- return False
- print (esteEchilateral(t))
- t=(5,4,3)
- def esteDreptunghic (t):
- if len (t)==3:
- if t[0] * t[0] == t[1] * t[1] + t[2] * t[2]:
- return True
- else:
- return False
- else:
- return False
- print (esteDreptunghic (t))
- t=(7,4,5)
- def estePerimetru (t):
- return (7+4+5)
- print (estePerimetru(7+4+5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement