Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def pitagora(cat1, cat2) :
- # @param cat1 : float (primo cateto)
- # @param cat2 : float (secondo cateto)
- print 'valore primo cateto: ', cat1
- print 'valore secondo cateto: ', cat2
- cat1 = cat1**2
- cat2 = cat2**2
- ipo = sqrt(cat1+cat2)
- print 'valore ipotenusa: ', ipo
- a = 4
- b = 3
- pitagora(a, b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement