Hi Everyone,
like write codes in mobile phone you should install "PYDROIDE 3"app (https://play.google.com/store/apps/details?id=ru.iiec.pydroid3)pydroide 3
Hi Everyone,
Hi Everyone,
For more python project and there code follow us.....
Welcome to our blog to learn coding and get python codes.
To write python code you install pycharm (its my suggestion) app in your laptop or desktop.
☝️This is our beautiful project image
this project code is here👇
import turtle
t=turtle.Turtle()
s=turtle.Screen()
s.bgcolor("black")
t.width(2)
t.speed(15)
col=("pink","blue","yellow")
for i in range(300):
t.pencolor(col[i%3])
t.forward(i*4)
t.right(121)
Welcome to our blog to learn coding and get python codes.
To write python code you install pycharm (its my suggestion) app in your laptop or computer.
Today we are draw INDIAN FLAG by using Python.
import turtle
flag = turtle.Turtle()
turtle.bgcolor("white")
flag.speed(3)
flag.pensize(5)
flag.color("blue")
def draw(x,y):
flag.penup()
flag.goto(x,y)
flag.pendown()
for i in range(24):
flag.forward(80)
flag.backward(80)
flag.left(15)
draw(0, -80)
flag.circle(80, 360)
#green rectangle
flag.color("green")
flag.begin_fill()
flag.forward(350)
flag.backward(700)
flag.right(90)
flag.forward(150)
flag.left(90)
flag.forward(700)
flag.left(90)
flag.forward(150)
flag.left(90)
flag.end_fill()
#orange rectangle
flag.color("orange")
draw(-350,80)
flag.begin_fill()
flag.right(180)
flag.forward(700)
flag.left(90)
flag.forward(150)
flag.left(90)
flag.forward(700)
flag.left(90)
flag.forward(150)
flag.left(90)
flag.end_fill()
turtle.done()
Hi Everyone,
Welcome to our blog to learn coding and get python codes.
To write python code you install pycharm (its my refer) app in your laptop or computer.
This is☝ our first python project. Amazing beautyfull design by python laungauge.
This project source code here 👇
import turtle
turtle.bgcolor("black")
turtle.pensize(2)
turtle.speed(0)
for i in range(6):
for colours in ["red", "magenta", "blue","grey","yellow","white","orange"]:
turtle.color(colours)
turtle.circle(100)
turtle.left(10)
turtle.done
turtle.hideturtle()
from turtle import * bgcolor('black') pensize(2) speed(11) hideturtle() for i in range(220): color('yellow') circle...