Pythagorean Theorem - 'c' calculation in Python

Elderly Beginner · November 1, 2019

How to calculate ‘c’

This is one of the most remembered theorems:
a^2^ + b^2^ = c^2^

Here is uncommon and a dirty solution for c:

c = abs(complex(a, b))

You can also go directly with:

c = abs(a+bj)

Twitter, Facebook