calthoff / self_taught

This repository contains the exercises for "The Self-Taught Programmer: The Definitive Guide to Programming Professionally."
http://theselftaughtprogrammer.io
272 stars 226 forks source link

length of a diagonal #32

Open danhaney403 opened 4 years ago

danhaney403 commented 4 years ago

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 commented 4 years ago

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

calthoff commented 4 years ago

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

amopollon commented 1 year ago

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)