Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started