Created
January 14, 2020 17:01
-
-
Save emreedemir/e200b17544649782b0a21ef7ab0ebcf0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Turtle | |
import turtle | |
##Turtle ile 2 ve 3 boytulu robotik cizimpler yapılabilir | |
""" | |
orta nokta (0,0) dir | |
olcü birimi piksel dir | |
""" | |
tt =turtle.Turtle() | |
for i in range(4) : | |
tt.forward(50) | |
tt.right(90) | |
tt.goto(30,30) | |
tt.circle(30) | |
tt.goto(-30,-30) | |
tt.circle(90,180) | |
tt.goto(-0,-70) | |
tt.circle(90,360,6) | |
tt.shape('turtle') | |
tt.forward(200) | |
tt.left(120) | |
tt.shape('arrow') | |
tt.forward(200) | |
tt.shape('circle') | |
tt.left(120) | |
tt.forward(200) | |
tt.goto(0,0) | |
tt.clear() | |
tt.shape('classic') | |
## Exampless | |
##Question 1) 5 basamaklı merdiven yapın | |
tt.color('red','blue') #red kalem rengi #blue dolgu rengi | |
for i in range(5): | |
tt.forward(50) | |
tt.right(90) | |
tt.forward(50) | |
tt.left(90) | |
turtle.done() # bu kod pencerenenin acik kalmasini saglayacak | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment