Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/math/Pythagoras10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/math/Pythagoras b/data/math/Pythagoras
new file mode 100644
index 0000000..fb4dbd8
--- /dev/null
+++ b/data/math/Pythagoras
@@ -0,0 +1,10 @@
+import math
+from math import sqrt
+
+print "This is the Pythagoras Theorem"
+a=float(raw_input("Type a ="))
+b=float(raw_input("Type b ="))
+
+c=sqrt((a*a)+(b*b))
+
+print "c =",c