Skip to content

Commit 5469759

Browse files
committed
Update Maths/BasicMaths.py
Add main method to 'Maths/BasicMaths' module
1 parent 5f5ab48 commit 5469759

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Maths/BasicMaths.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,13 @@ def eulerPhi(n):
6262
s *= (x - 1)/x
6363
return s
6464

65-
print(primeFactors(100))
66-
print(numberOfDivisors(100))
67-
print(sumOfDivisors(100))
68-
print(eulerPhi(100))
65+
def main():
66+
print(primeFactors(100))
67+
print(numberOfDivisors(100))
68+
print(sumOfDivisors(100))
69+
print(eulerPhi(100))
70+
71+
if __name__ == '__main__':
72+
main()
6973

7074

0 commit comments

Comments
 (0)