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
Get step-by-step solutions from verified subject matter experts
