From 54697599f44cc1c5c994fe360c95f73ae35f1b45 Mon Sep 17 00:00:00 2001 From: Amit Pradhan Date: Sun, 14 Oct 2018 00:53:44 +0530 Subject: [PATCH] Update Maths/BasicMaths.py Add main method to 'Maths/BasicMaths' module --- Maths/BasicMaths.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Maths/BasicMaths.py b/Maths/BasicMaths.py index f05cde64d..6e8c919a0 100644 --- a/Maths/BasicMaths.py +++ b/Maths/BasicMaths.py @@ -62,9 +62,13 @@ def eulerPhi(n): s *= (x - 1)/x return s -print(primeFactors(100)) -print(numberOfDivisors(100)) -print(sumOfDivisors(100)) -print(eulerPhi(100)) +def main(): + print(primeFactors(100)) + print(numberOfDivisors(100)) + print(sumOfDivisors(100)) + print(eulerPhi(100)) + +if __name__ == '__main__': + main() \ No newline at end of file