We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c681eb commit 0576a5dCopy full SHA for 0576a5d
easyPythonpi/easyPythonpi.py
@@ -24,6 +24,14 @@ def factorial(n): # To find the factorial of 2 numbers
24
# single line to find factorial
25
return 1 if (n == 1 or n == 0) else n * factorial(n - 1)
26
27
+# To compute the factord of the argument passed
28
+def factors(n):
29
+ factors = []
30
+ for i in range(1, n+1):
31
+ if n % i == 0:
32
+ factors.append(i)
33
+ return factors
34
+
35
def Area_circle(r): # To find the area of a circle using the radius r
36
PI = 3.142
37
return PI * (r * r)
0 commit comments