131k views
12 votes
Edhesive 6.2

Examine the code below. When this program runs, how many times will the word "Hello" be printed?

import simplegui

def draw(canvas):
for i in range (10):
canvas.draw_text("Hello", (10, 25 + 20*I), 20, "red")

frame = simplegui.create_frame("Testing", 400, 400)
frame.set_draw_handler(draw)
frame.start()

User Smammy
by
3.0k points

2 Answers

9 votes

Answer:

10

Step-by-step explanation:

im good

User CanyonCasa
by
3.6k points
10 votes

Answer:

10

Step-by-step explanation:

"for i in range (10):"

User VChamps
by
3.9k points