Skip to content

Commit 6e76502

Browse files
committed
Minor Tweaks
1 parent 6e23a65 commit 6e76502

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Excersise/Factorial.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__author__ = 'Sanjay'
22

3+
34
def fa(n):
45
# if n==1:
56
# return 1
@@ -21,9 +22,8 @@ def fac(n):
2122
return resp
2223

2324

24-
2525
if __name__ == '__main__':
2626
print ("Enter a number to find the factorial!")
2727
getInput = int(input())
2828
fa(getInput)
29-
fac(5)
29+
fac(5)

Map/WhatIsMap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def addingTwoNumber(m,n):
4141
# here's the map calculation, map(<methodName>, param1, param2)
4242
print(list(map(addingTwoNumber, firstT, secondT))) # output as - [5, 7, 9, 13]
4343

44-
# here the para1 is supplied as list, but still it works and gives the same output.
44+
# here the para2 is supplied as list, but still it works and gives the same output.
4545
print(list(map(addingTwoNumber, firstT, list(secondT)))) # output as - [5, 7, 9, 13]
4646

4747
# We can also use lambda expressions with map to achieve above result.

0 commit comments

Comments
 (0)