Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Draw GFG Geeks For Geeks Logo using Python and Turtle

# importing turtle for graphics
import turtle

# Forming the window screen
tut = turtle.Screen()

# background color green
tut.bgcolor("White")

# object
pen = turtle.Turtle()

#speed of pen
pen.speed(10)

# object color
pen.color("Green")

# object width
pen.width(10)
tut = turtle.Screen()


# Code for symbol
# backward C
for x in range(180):
    pen.forward(1)
    pen.right(1)

# up
pen.right(90)
pen.forward(50)

# right
pen.right(90)
pen.forward(130)

# down
pen.right(90)
pen.forward(50)
pen.left(90)

# forward C
for x in range(180):
    pen.backward(1)
    pen.right(1)

turtle.done()
Comment

PREVIOUS NEXT
Code Example
Python :: print backward number from input 
Python :: python async await function await expression 
Python :: loop through KeyedVectors 
Python :: Membership in a list 
Python :: python show difference between two strings and colorize it 
Python :: convert set to list python time complexity method 4 
Python :: while except python 
Python :: django url wildcard 
Python :: Sampling data in different ways 
Python :: assert isinstance python 
Python :: mql5 python 
Python :: geopandas bbox 
Python :: How to print specific figure in python 
Python :: if string contains loop pandas 
Python :: python two list into dictinaray list comprehension 
Python :: Bilgisayardaki mp3 uzantili dosyalari bulma 
Python :: create date range python 
Python :: pyqt5.direct connection 
Python :: check two list python not match 
Python :: python string with si suffix to number 
Python :: python how to change a point in a multidimensional list 
Python :: grouped bar chart with labels 
Python :: python codes and answers cheat code pdf 
Python :: come mettere una scelta su python 
Python :: custom dense layer 
Python :: python type conversion 
Python :: numpy fancy indexing 
Python :: delete to trash 
Python :: Complete the function that accepts a string parameter, and reverses each word in the string. All spaces in the string should be retained. python 
Python :: ploting to data on the same axis 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =