Q. What will be the output of following code?


def interest (prnc, time = 2, rate = 0.10) :

    return (prnc* time * rate)

print (interest (6100, 1))

print (interest (5000, rate = 0.05))

print (interest (5000, 3, 0.12 ))

print (interest (time = 4, prnc = 5000))


Answer :-

Output :-

610.0
500.0
1800.0
2000.0

>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post