
Introduction
Let’s move on to a fantastic project about how to draw Apple Logo Using Python turtle. Before we begin, we will need a Python and Turtle graphics library.
Import the turtle Library
import turtle as t
Setup the Background color of the canvas.
t.begin_fill()
t.Screen().bgcolor('Gray')
Start to Create the Apple Logo.
t.fillcolor('black')
t.left(134)
for i in range(30):
t.forward(1)
t.left(1)
t.right(5)
for i in range(35):
t.forward(1)
t.left(1)
t.left(5)
t.forward(30)
for i in range(15):
t.forward(0.7)
t.right(3)
t.forward(25)
t.left(5)
for i in range(50):
t.forward(1)
t.left(1)
t.right(3)
for i in range(50):
t.forward(1)
t.left(1)
t.right(5)
for i in range(45):
t.forward(2)
t.left(1)
t.right(5)
for i in range(40):
t.forward(2)
t.left(1)
t.left(5)
for i in range(20):
t.forward(1)
t.left(2)
t.left(5)
t.forward(15)
for i in range(9):
t.forward(2)
t.right(3)
t.forward(1)
for i in range(15):
t.forward(1)
t.right(1)
t.right(4)
t.forward(4.5)
t.right(1)
for i in range(27):
t.forward(1)
t.left(2)
t.left(8)
t.forward(5)
for i in range(25):
t.forward(2)
t.left(1)
t.right(3)
t.forward(10)
t.left(83)
for i in range(75):
t.forward(1.3)
t.right(1)
t.right(4)
for i in range(24):
t.forward(1.3)
t.right(1)
t.forward(9.66)
t.end_fill()
t.penup()
t.left(132)
t.forward(100)
t.right(96)
t.pendown()
t.begin_fill()
t.fillcolor('black')
for i in range(60):
t.forward(0.8)
t.right(1)
t.right(120)
for i in range(60):
t.forward(0.8)
t.right(1)
t.hideturtle()
t.end_fill()
t.done()
Source Code To Apple Logo Using Python turtle
import turtle as t t.begin_fill() t.Screen().bgcolor('Gray') t.fillcolor('black') t.left(134) for i in range(30): t.forward(1) t.left(1) t.right(5) for i in range(35): t.forward(1) t.left(1) t.left(5) t.forward(30) for i in range(15): t.forward(0.7) t.right(3) t.forward(25) t.left(5) for i in range(50): t.forward(1) t.left(1) t.right(3) for i in range(50): t.forward(1) t.left(1) t.right(5) for i in range(45): t.forward(2) t.left(1) t.right(5) for i in range(40): t.forward(2) t.left(1) t.left(5) for i in range(20): t.forward(1) t.left(2) t.left(5) t.forward(15) for i in range(9): t.forward(2) t.right(3) t.forward(1) for i in range(15): t.forward(1) t.right(1) t.right(4) t.forward(4.5) t.right(1) for i in range(27): t.forward(1) t.left(2) t.left(8) t.forward(5) for i in range(25): t.forward(2) t.left(1) t.right(3) t.forward(10) t.left(83) for i in range(75): t.forward(1.3) t.right(1) t.right(4) for i in range(24): t.forward(1.3) t.right(1) t.forward(9.66) t.end_fill() t.penup() t.left(132) t.forward(100) t.right(96) t.pendown() t.begin_fill() t.fillcolor('black') for i in range(60): t.forward(0.8) t.right(1) t.right(120) for i in range(60): t.forward(0.8) t.right(1) t.hideturtle() t.end_fill() t.done()
Output

As you can see, we were able to perfectly draw the Apple logo with Python Turtle. I hope you found this tutorial interesting and informative. For more articles like this check out our website copyassignment.com
Also Read:
- Filter List in Python | 10 methods
- Top 25 Pattern Programs in C++
- Currency Converter in C++
- SQLite | CRUD Operations in Python
- Number Guessing Game in C++
- Image background remover in Python
- C++ Project Structure
- Python | Check if a string is a palindrome or not without Recursion
- Python | Check if a number is an Armstrong Number or not using Recursion
- Python | Check if a number is an Armstrong Number or not without using Recursion
- Python | Shuffle a list using recursion
- Python | Shuffle a list without recursion
- Python | Implementing switch case using functions
- Python function to check whether a number is perfect or not
- Python | Find LCM using function
- Python | Find HCF using function
- Python | Convert the binary number to decimal without using library function
- Python | Create a basic operations calculator(+, -, /, and x), create a separate function for each operation
- Python | Detecting the number of local variables declared in a function
- Python | Making a chain of function decorators (bold italic underline etc)
- Python | Access function inside a function
- Event Management System Project in Python
- ATM machine program in C++
- Python | Create a function with a pass statement
- Python | Function to calculate the square root of a number
- Python | A function that calculates the power of a number
- Python | A function that accepts 2 integers and adds them and returns their sum
- Python | Function that takes a list of integers and returns the last integer
- Python | Return multiple values from a function
- Python function that takes a list and returns a new list with unique elements of the first list