Answer:- Code
from turtle import * # For import turtle library
space=Screen() # For individual screen(canvas) for turtle
turtle=Turtle() # Assign turtle to Turtle
# For Drawing 9 in canvas
turtle.circle(-40,450) # For Drawing circle for upper part of 9, We take rotation of turtle till 450 degree(360+90).
turtle.fd(70) # forward 70, to gap between complete circle and semi-cirle
turtle.circle(-40,180) # To draw semi-circle till 180 degree of radius 40.
# Pen Up and Down condition, For both digits are in same line.
turtle.pu() # Pen UP
turtle.fd(110) # Forward 110
turtle.rt(90) # Right 90 degree
turtle.fd(170) # Forward 170
turtle.pd() # Pen Down
#For Drawing 5 in canvas.
turtle.bk(65) # Backward 65 to draw upper line of 5.
turtle.rt(90) # Right 90 degree
turtle.fd(60) # Forward 110, For down line in 5.
turtle.lt(90) # left 90 degree
turtle.fd(25) # Forward 110
turtle.circle(-40,180) # To draw semi-circle till 180 degree of radius 40, for circular part of 5.
turtle.fd(25) # Forward 25.
Output:-
Running on Online Python Platform [(repl.it) with turtle IDE]
If you need any help in understanding, Please comment your query.
I tried my best for this question. I hope you like my answer.
Thank You
Get Answers For Free
Most questions answered within 1 hours.