Question: Can anyone show detailed results for these two programs? Python programs a. def athr(); sum = 0 for i in range(1,6): sum = sum +
Can anyone show detailed results for these two programs? Python programs

a. def athr(); sum = 0 for i in range(1,6): sum = sum + i return sum x= athr() print x y= 2 * athr() - (3 + athr()/3) print y B. def acts1(a, b, c): d = c*a a=d/(b - 3) + c 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 c, d
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
