From c29baa0578a2e1ab3f0319967c10e5139b68158f Mon Sep 17 00:00:00 2001 From: lihini223 Date: Fri, 25 Oct 2019 21:09:05 +0530 Subject: [PATCH 1/2] Wrote a Python Program --- python/factorial.py | 7 +++++++ python/helloworld.py | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 python/factorial.py delete mode 100644 python/helloworld.py 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") From b0d7dd898b13a239a69fcda1d741684fb83a3352 Mon Sep 17 00:00:00 2001 From: lihini223 Date: Mon, 28 Oct 2019 13:12:12 +0530 Subject: [PATCH 2/2] Task Completed --- php/index.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) 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 @@ - +