Question: Q . 5 ) ( 2 5 ) What is the output of the following script? Write your answer inside the boxes. def sun (

Q.5)(25) What is the output of the following script? Write your answer inside the boxes.
def sun(n) :
for i in range (,n) :
for j in range (,i+1) :
print(fun (i,j), end="")
print()
def fun(n,k :
res =1
if k>n-k :
k=n-k
for i in range (,k) :
res =res**(n-i)
res = res ??i+1
return res
sun(5)
 Q.5)(25) What is the output of the following script? Write your

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!