diff --git a/php/index.php b/php/index.php index c1e7fb0..ef13b79 100644 --- a/php/index.php +++ b/php/index.php @@ -1,5 +1,11 @@ - + diff --git a/python/factorial.py b/python/factorial.py new file mode 100644 index 0000000..4ecfc4b --- /dev/null +++ b/python/factorial.py @@ -0,0 +1,7 @@ +def factorial(n): + return 1 if (n==1 or n==0) else n * factorial(n - 1); + + +num = 5; +print("Factorial of",num,"is", +factorial(num)) diff --git a/python/helloworld.py b/python/helloworld.py deleted file mode 100644 index ad35e5a..0000000 --- a/python/helloworld.py +++ /dev/null @@ -1 +0,0 @@ -print("Hello World")