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, 2019 in Python by Nagya
4,205 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, 2019 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
• 58,100 points
910 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, 2019 in Python by Nymeria
• 3,560 points
4,887 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, 2019 in Python by charlie_brown
• 7,720 points
3,621 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, 2019 in Python by Waseem
• 4,540 points

edited May 23, 2019 by Omkar 406 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,342 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
3,896 views
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, 2019 in Python by Ayushi
5,216 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, 2019 in Python by Mohammad
• 3,230 points
742 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP