1 2 3 4 5 6 7 8 9 | import math while 1: a = int(input("Please enter the value of a: ")) b = int(input("Please enter the value of b: ")) c = math.sqrt(a**2 + b**2) print("Thank you for using my pythagorus calculator!") print("Your answer is: ", c) print("Want to try again?…") |
Python | Pythagoras Calculator
This is the first python program I built using nothing but my knowledge, (and code..duh). It's not very complex, at all.. but it got me to a start.