self_taught
self_taught copied to clipboard
length of a diagonal
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)
I copied it from the tutorial line by line and it wont run, or give results.
It is an example illustrating a point, it isn't supposed to output anything.
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)