Python core 55.2 tuples exercise | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Python core 55.2 tuples exercise

Could someone explain the maths to me in the above exercise. I had to look up the solution and although the code makes sense I'm not grasping the equation.

26th Apr 2022, 11:57 AM
1 Antwort
+ 3
It's nothing but geometry: We calculate the Euclidean distance between 2 coordinates using the Pythagoras theorem.
26th Apr 2022, 12:43 PM
Lisa - avatar