Friday, March 18, 2022

LOVE SYMBOL WITH PYTHON

 

SOURCE CODE👇


# Import turtle package 


import turtle 


  

# Creating a turtle object(pen) 


pen = turtle.Turtle() 


  

# Defining a method to draw curve 


def curve(): 


    for i in range(200): 


  


        # Defining step by step curve motion 


        pen.right(1) 


        pen.forward(1) 


  

# Defining method to draw a full heart 


def heart(): 


  


    # Set the fill color to red 


    pen.fillcolor('red') 


  


    # Start filling the color 


    pen.begin_fill() 


  


    # Draw the left line 


    pen.left(140) 


    pen.forward(113) 


  


    # Draw the left curve 


    curve() 


    pen.left(120) 


  


    # Draw the right curve 


    curve() 


  


    # Draw the right line 


    pen.forward(112) 


  


    # Ending the filling of the color 


    pen.end_fill() 


  

# Defining method to write text 


def txt(): 


  


    # Move turtle to air 


    pen.up() 


  


    # Move turtle to a given position 


    pen.setpos(-68, 95) 


  


    # Move the turtle to the ground 


    pen.down() 


  


    # Set the text color to lightgreen 


    pen.color('lightgreen') 


  


    # Write the specified text in  


    # specified font style and size 


  


  

# Draw a heart 

heart() 


  

# Write text 

txt() 


  

# To hide turtle 

pen.ht() 

Wednesday, March 9, 2022

Create Netflix Logo With Python Code

SOURCE CODE👇



import turtle

t = turtle.Turtle()
t.speed(10)
turtle.bgcolor("white")
t.color("white")
turtle.title('Netflix Logo made by harsha')
t.up()
t.goto(-80, 50)
t.down()
t.fillcolor("black")
t.begin_fill()
t.forward(200)
t.setheading(270)
s = 360
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)

t.forward(180)
s = 270
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)

t.forward(200)
s = 180
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)

t.forward(180)
s = 90
for i in range(9):
    s = s - 10
    t.setheading(s)
    t.forward(10)
t.forward(30)
t.end_fill()
t.up()
t.color("black")
t.setheading(270)
t.forward(240)
t.setheading(0)
t.down()
t.color("red")
t.fillcolor("#E50914")
t.begin_fill()
t.forward(30)
t.setheading(90)
t.forward(180)
t.setheading(180)
t.forward(30)
t.setheading(270)
t.forward(180)
t.end_fill()
t.setheading(0)
t.up()
t.forward(75)
t.down()
t.color("red")
t.fillcolor("#E50914")
t.begin_fill()
t.forward(30)
t.setheading(90)
t.forward(180)
t.setheading(180)
t.forward(30)
t.setheading(270)
t.forward(180)
t.end_fill()
t.color("red")
t.fillcolor("red")
t.begin_fill()
t.setheading(113)
t.forward(195)
t.setheading(0)
t.forward(31)
t.setheading(293)
t.forward(196)
t.end_fill()
t.hideturtle()

Sunday, March 6, 2022

LEARN ETHICAL HACKING FOR FREE


WANT TO LEARN ETHICAL HACKING FOR FREE THESE ARE THE WEBSITES PROVIDING YOU QUALITY CONTENT FOR FREE!!!

1. Guru99 https://www.guru99.com/


FOLLOW ME ON INSTAGRAM @_MR_CODEX_

LOVE SYMBOL WITH PYTHON

  SOURCE CODE👇 # Import turtle package  import turtle     # Creating a turtle object(pen)  pen = turtle.Turtle()     # Defining a method to...