Join the conversation
720
Reply
invalid syntax
Reply
def mian(n):
if n==1:
return 1
else:
return n* mian(n-1)
print(mian(6))
Reply
720
Reply
Done
Reply
Sir Aammar, ap ki examples bhut mazzy ki hoti hn, like hansi aa jati hy sun kr or topic ki b achy sy samjh lag jati hy examples sy😁
Reply
#question 1
# def a(a,b):
# return a/b
# print(a(2,2))# x =lambda a,b: a/b
# print(x(2,2))
#question 2
# def x(a,b):
# return a*b
# print(x(4,4))# x=lambda a,b: a*b
# print(x(5,5))
#question 3
# def a(a,b):
# return a-b
# print(a(9,7))
#lambda function
# x =lambda a,b: a-b
# print(x(10,5))#question 4
def a(a,b):
return a/b
print((a(-8,-4)))x=lambda a,b:a/b
print(x(8,2))
Reply
3 ka fac hoga 3*2*1
Reply
it gives error
Reply
braces r missing
Reply