Answered step by step
Verified Expert Solution
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
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started