self_taught icon indicating copy to clipboard operation
self_taught copied to clipboard

length of a diagonal

Open danhaney403 opened this issue 5 years ago • 4 comments

danhaney403 avatar Jan 13 '20 21:01 danhaney403

i don't get an error message, it just doesn't run

#http://tinyurl.com/z52c8z8 import math #length of a diagonal l=4 w=10 d=math.sqrt(l2+w2)

danhaney403 avatar Jan 13 '20 21:01 danhaney403

I copied it from the tutorial line by line and it wont run, or give results.

danhaney403 avatar Jan 13 '20 21:01 danhaney403

It is an example illustrating a point, it isn't supposed to output anything.

calthoff avatar Jan 13 '20 21:01 calthoff

Hello there! Just for fun I add print(l, w, d)

http://tinyurl.com/z52c8z8

import math

#length of a diagonal

l=4 w=10 d=math.sqrt(l2+w2)

print(l, w, d)

amopollon avatar Dec 25 '22 22:12 amopollon