Pythagoras theorem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Pythagoras theorem

It gives me syntax errors on line 5... Any ideas where it is? Thanks!!! https://code.sololearn.com/cnlh0C1muH8z/?ref=app

8th Jan 2022, 11:49 AM
Laura Melguizo
Laura Melguizo - avatar
2 Answers
+ 3
Compare with == instead of =
8th Jan 2022, 11:58 AM
Coding Cat
Coding Cat - avatar
+ 9
`=` is used for assigning variables while `==` is for comparison
8th Jan 2022, 11:59 AM
Simba
Simba - avatar