Pergunta de entrevista da empresa GE Digital

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