Make turtle face a particular direction in python

0 votes
How do I make my turtle look/face a particular direction in pyhton?
Jul 8 in Python by Nagya
23 views

1 answer to this question.

0 votes

You can use the the setheading command

turtle.setheading(<degrees/radians>)

In standard mode, use the following

turtle.setheading(0)

If you wish your turtle to face to his right

turtle.setheading(90)

If you wish your turtle faced upward:

turtle.setheading(180)

If you wish your turtle faces left:

turtle.setheading(270)
answered Jul 8 by Jinu

Related Questions In Python

+2 votes
1 answer

How do you make a block comment in python?

''' This is a multiline comment. I ...READ MORE

answered Aug 23, 2018 in Python by Priyaj
• 56,520 points
55 views
0 votes
1 answer

Need help extracting a schema to make use for an avro file in Python

Hi, nice question. So what I daily use ...READ MORE

answered Jan 10 in Python by Nymeria
• 3,520 points
466 views
0 votes
1 answer

What is the process to kill a particular thread in python?

A multiprocessing.Process can p.terminate() In the cases where I want to ...READ MORE

answered Feb 4 in Python by charlie_brown
• 7,720 points
51 views
0 votes
0 answers

How can I make a simple webapp in python?

What is the difference between a microframework ...READ MORE

May 22 in Python by Waseem
• 4,480 points

edited May 23 by Omkar 16 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 216 views
+4 votes
6 answers
0 votes
1 answer

How do I make one turtle follow another turtle in python?

Try something like this: from turtle import Turtle, ...READ MORE

answered Jul 8 in Python by Ayushi
26 views
0 votes
1 answer

How can I make a variable private in python?

Python does not have any private variables like C++ or ...READ MORE

answered Aug 2 in Python by Mohammad
• 3,060 points
23 views