Pregunta de entrevista de GE Digital

Using Python, solve power triangle and output result in console.