"Hello World" | Coursera Community
Coursera Header

"Hello World"

  • 10 August 2019
  • 2 replies
  • 87 views

Badge +1
"Hello World"

2 replies

@ChrisB Hi!
Userlevel 6
Badge +4



code:
import turtle
wn = turtle.Screen()
wn.bgcolor('skyblue')
tess = turtle.Turtle()
joe = turtle.Turtle()
jazz = turtle.Turtle()

tess.speed(8)
tess.pensize(4)

tess.penup()
tess.backward(150)
tess.pendown()
tess.left(90)
tess.forward(50)
tess.bk(100)
tess.fd(50)
tess.rt(90)
tess.fd(50)
tess.lt(90)
tess.fd(50)
tess.bk(100)
tess.rt(90)
tess.shape('turtle')

joe.speed(8)
joe.pensize(4)

joe.penup()
joe.backward(50)
joe.pendown()
joe.left(90)
joe.forward(50)
joe.right(90)
joe.fd(25)
joe.bk(50)
joe.fd(25)
joe.rt(90)
joe.forward(100)
joe.right(90)
joe.fd(25)
joe.bk(50)
joe.rt(180)
joe.shape('turtle')

jazz.speed(8)
jazz.penup()
jazz.forward(11)
jazz.pendown()
jazz.left(90)
jazz.fd(50)
jazz.pencolor('blue')
jazz.bk(80)
jazz.penup()
jazz.bk(20)
jazz.pendown()
jazz.lt(270)
jazz.shape('turtle')

joe.speed(1)
joe.backward(25)

tess.fillcolor('yellow')
joe.fillcolor('blue')
jazz.fillcolor('red')

tess.speed(1)
tess.penup()
tess.fd(25)

joe.fd(25)

jazz.speed(1)
jazz.penup()
jazz.fd(75)
jazz.pencolor('red')

jazz.lt(90)
jazz.pendown()

joe.penup()
joe.fd(35)

jazz.fd(100)
dist = 9
jazz.speed(9)
jazz.hideturtle()
for i in range(51):
jazz.rt(270)
jazz.fd(dist)
dist += 0.9
jazz.showturtle()

tess.hideturtle()
tess.setpos(-130,130)
tess.pendown()
tess.pensize(1)
tess.pencolor('yellow')
dist = 8
tess.speed(9)
for i in range(60):
tess.lt(111)
tess.fd(dist)
dist +=2.2

tess.setheading(180)
tess.showturtle()
tess.speed(1)
tess.lt(90)
tess.fd(130)
tess.lt(90)


Greetings @ChrisB,
Let me guess, you like to programming 💡 feel welcome to introduce yourself.

I learn this in Python 3 and much more 😄.


Regards.

Reply