Question: PLEASE SOLVE ASAP Question 1 The code shown below is meant to animate a circle moving from left to right. What should be in the

PLEASE SOLVE ASAP

Question 1

The code shown below is meant to animate a circle moving from left to right. What should be in the flank on line 3?

x = 5

def draw(canvas):

________

x = x + 5

canvas.draw_circle((x,200), 50, 1, color, color)

Question 2

Consider the following code:

val = 100 def example():  global val  val = 50  print (val) print (val) example() print (val)

What is output? _________________ , ___________________ , ___________________

Question 3

Consider the following code:

val = 25 def example():  val = 15 print(val) print(val) example(val) print (val)

What is output? __________________, ___________________ , _________________

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!