Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 1, 2020 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/890d0c43b48c1e5e08070157229669c6 to your computer and use it in GitHub Desktop.
Save parzibyte/890d0c43b48c1e5e08070157229669c6 to your computer and use it in GitHub Desktop.
import math
def area_triangulo(base, altura):
return base * altura / 2
def area_rectangulo(base, altura):
return base * altura
def area_rombo(diagonal1, diagonal2):
return (diagonal1 * diagonal2) / 2
def area_circulo(radio):
return math.pi * radio ** 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment