What will be the output of the following Python code? [code]import turtle t=turtle.Pen() t.resizemode(“123hoidap”) t.resizemode()[/code]

Đức Lưu

New member
What will be the output of the following Python code?
Code:
import turtle
t=turtle.Pen()
t.resizemode(“123hoidap”)
t.resizemode()
A. user
B. auto
C. nonresize
D. error
 
Answer: c
Explanation: When not explicitly specified as auto or user, no adaption of the turtle’s appearance takes place and the mode is ‘noresize’. Hence the output of the code is: noresize.
 

Tìm kiếm

Back
Top