Skip to content

Instantly share code, notes, and snippets.

class Triangulo:
def __init__(self, a, b, c):
self.a = a
self.b = b
self.c = c
def gerar_lados_ordenados(self):
return sorted([self.a, self.b, self.c])
def semelhantes(self, triangulo):
while True:
try:
num = int(input() or 0)
except EOFError:
num = 0
if not num:
break
chars_saved = 0
from typing import TYPE_CHECKING, Iterable, TypeVar, Union, cast
if TYPE_CHECKING:
from typing import reveal_type # type: ignore
else:
reveal_type = lambda x: x # noqa
_T = TypeVar("_T")