Question: Run the two programs in detail and explain what will appear and why. python programs a. def athr(): sum = 0 for i in range(1,6):

Run the two programs in detail and explain what will appear and why.

Run the two programs in detail and explain what will appear and

python programs

a. def athr(): sum = 0 for i in range(1,6): sum = sum + i return sum x = athr() print y= 2 * athr() - (3 + athr() /3) printy B. def acts1(a, b, c): d = c*a a=d/(b - 3) + b= a* d % a-c print a, b, d def acts2(a, c, b) if c == a: d = b % a/b+3 else: a =(c + 1)/(b%2) b=b+ pow(a, 2) d = (b /C+3)/a return d a, b = 4,9 c=b-a if (c a): acts1(a, b, c) d=C-2 else: d=c*a * (-1) if acts2(a, b, c) > (a % b): d=(a + b)/2*c/a*b else: d = (c*a) - a + b/(a % 2) print cd

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!