1.

Which of the following functions returns a value in degrees, counterclockwise from the horizontal right?(a) heading()(b) degrees()(c) position()(d) window_height()I got this question in an interview.This interesting question is from Turtle Module in chapter Mapping Functions and Modules of Python

Answer»

The correct choice is (a) heading()

Explanation: The function heading() RETURNS the heading of the turtle, which is a VALUE in DEGREES counterclockwise from the HORIZONTAL right. This measure will be in RADIANS if radians() has been called.



Discussion

No Comment Found

Related InterviewSolutions