From 8c6e0f22c83791bf07154727dc41a5f31fdb1e93 Mon Sep 17 00:00:00 2001 From: AthaSSiN Date: Thu, 3 Oct 2019 21:38:01 +0530 Subject: [PATCH] Added name ASP and surprise! --- CONTRIBUTING.md | 1 + project1.py | 14 +++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2baef9e..c665bb9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,3 +3,4 @@ Please add your name. Yugesh Kothari Tanvi Nerkar +Atharv -- AthaSSiN; diff --git a/project1.py b/project1.py index 8700c73..31a6594 100644 --- a/project1.py +++ b/project1.py @@ -1,6 +1,10 @@ -def fib(number_for_fibonacci): +def fac(n): # Add code here - return #Fibonacci number + res = 1 + for i in range(n+1): + res *= i + print(res) + def is_prime(number_to_check): @@ -13,9 +17,9 @@ def reverse_string(string_to_be_reversed): return string_to_be_reversed[::-1] # return reversed_string -#Take input for fib in variable a +#Take input for fac in variable a -print(fib(a)) +print(fac(a)) #Take input for is_prime in variable b @@ -25,4 +29,4 @@ def reverse_string(string_to_be_reversed): #Take input for reverse in variable c -print(reversed_string(c)) +print(reverse_string(c))