Create pythagoreanTriplets.py
diff --git a/pythagoreanTriplets.py b/pythagoreanTriplets.py
new file mode 100644
index 0000000000..55b146ea78
--- /dev/null
+++ b/pythagoreanTriplets.py
@@ -0,0 +1,14 @@
+limit=int(input("Enter upper limit:"))
+c=0
+m=2
+while(c<limit):
+    for n in range(1,m+1):
+        a=m*m-n*n
+        b=2*m*n
+        c=m*m+n*n
+        if(c>limit):
+            break
+        if(a==0 or b==0 or c==0):
+            break
+        print(a,b,c)
+    m=m+1
