Question: What will be printed for this function if you executed each of these: (a) TestMe (1, 2, 3) (b) TestMe (3, 2, 1) (c) TestMe

What will be printed for this function if you executed each of these:

(a) TestMe (1, 2, 3)

(b) TestMe (3, 2, 1)

(c) TestMe (5, 75, 20)

def testMe (p,q, r): if q > 50: print r value = 10 for i in range (0,p): print

def testMe (p,q, r): if q > 50: print r value = 10 for i in range (0,p): print "Hello" value = value - 1 %3D print value print r

Step by Step Solution

3.33 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Hello 9 3 b ... View full answer

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 Introduction to Computing and Programming in Pytho Questions!