Python Turtle Graphics - Pattern 3 | Drawing INDIAN FLAG

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 96

  • @naveenhagaragi8460
    @naveenhagaragi8460 4 ปีที่แล้ว +5

    Thank you Amulya for such wonderful explanation. I am referring all your videos.
    I didnt see this video yet and wrote my own code referring your graph at 0:04 . I tried to draw India Flag with AshokChakra having 24 spokes in it.
    import turtle
    t=turtle.Turtle()
    li=['green','white','orange']
    def tiranga(color):
    t.begin_fill()
    t.fillcolor(color)
    for i in range(2):
    t.right(90)
    t.forward(400)
    t.right(90)
    t.forward(100)
    t.end_fill()
    def AshokChakra():
    t.up()
    t.goto(200,200)
    t.down()
    t.color('blue')
    t.right(90)
    t.circle(50)
    t.up()
    t.goto(200,250)
    t.down()
    for i in range(1,25):
    t.fd(50)
    t.goto(200,250)
    t.left(15)
    t.pensize(2)
    t.up()
    t.goto(0,-300)
    t.left(90)
    t.down()
    t.goto(0,100)
    for i in range(3):
    t.fd(100)
    tiranga(li[i])

    AshokChakra()

  • @Goshbello-Money-AI-Tutorials
    @Goshbello-Money-AI-Tutorials 6 ปีที่แล้ว +15

    I’ve subscribed immediately. You’re very patient and your teachings and drawings are excellent. Keep it up. Best channel👍

    • @AmulsAcademy
      @AmulsAcademy  6 ปีที่แล้ว

      Thank you :)

    • @baluk2291
      @baluk2291 5 ปีที่แล้ว

      Yes awesome 👏🏻

  • @ickimadrasi8965
    @ickimadrasi8965 4 ปีที่แล้ว +4

    The flag was challenging but very satisfying in the end, great job of instructing

  • @funnytubepro237
    @funnytubepro237 2 ปีที่แล้ว +1

    Another method which i created with your basics .thanks mam
    import turtle
    t=turtle.Turtle()
    t.speed(5)
    list=['green','white','orange']
    t.pensize(4)
    for i in range(3):
    t.begin_fill()
    t.fillcolor(list[i])
    t.lt(90)
    t.fd(100)
    t.fd(-100)
    t.setheading(0)
    t.fd(400)
    t.lt(90)
    t.fd(100)
    t.setheading(180)
    t.fd(400)
    t.end_fill()
    t.setheading(270)
    t.fd(900)
    t.up()
    t.goto(200,100)
    t.down()
    t.setheading(0)
    t.color('blue')
    t.circle(50)
    t.setheading(90)
    t.fd(50)
    for i in range(24):
    t.fd(45)
    t.bk(45)
    t.rt(15)
    turtle.done()

  • @dilhyderstudios8569
    @dilhyderstudios8569 2 ปีที่แล้ว +1

    Wowww😍😍😍 Thank you mam....

  • @dilhyderstudios8569
    @dilhyderstudios8569 2 ปีที่แล้ว +1

    Hi mam I tried in my own way
    i succeded😍 Thank you mam😘😘😘

  • @puttaanilkumar9184
    @puttaanilkumar9184 5 ปีที่แล้ว +2

    I subscribed ur channel.
    Because ur teaching style is marvelous 😘😘😘

  • @dilhyderstudios8569
    @dilhyderstudios8569 2 ปีที่แล้ว

    Excellent teaching mam... 👍🤩

  • @rameshkumarpandit1614
    @rameshkumarpandit1614 4 ปีที่แล้ว +2

    I have also subscribed immediately , really your teaching level one of the best , i am very happy to learn python from this channel really you are to good and your also explanation level is waoo such a great performance , Thanq soo much Big fan for teaching method 💐💐

  • @erremazo
    @erremazo 4 ปีที่แล้ว +1

    Very good good video. Thanks and greetings from Colombia.

  • @pancholidevansh848
    @pancholidevansh848 2 ปีที่แล้ว

    Nice job , well teaching 👍🏻

  • @vivekhosamani7265
    @vivekhosamani7265 5 ปีที่แล้ว +2

    Cool stuff. By the way how old are you?

  • @Anasalkhteeb-dr2hv
    @Anasalkhteeb-dr2hv 4 หลายเดือนก่อน

    شكراً لك يا اخي❤❤

  • @qzorn4440
    @qzorn4440 6 ปีที่แล้ว +1

    what a smart little turtle that can draw the flag of India. great job. thanks. 5*)

  • @deadpool4422
    @deadpool4422 3 ปีที่แล้ว

    Wow, Ma'am. thank you soo much for teaching us python, I have been good t python because of you. Thank you for helping us. Ma'am can you teach us how to make word document. i have subscribed you because you are helping us too. !!THANK YOU!!!

  • @BrendanMetcalfe
    @BrendanMetcalfe 4 ปีที่แล้ว +2

    Cool vid thanks!

  • @sonu-hk3rq
    @sonu-hk3rq 2 ปีที่แล้ว

    Thank you🙏🙏

  • @pavangowda7915
    @pavangowda7915 6 ปีที่แล้ว +1

    U teach very gud 😍come to my clg as a professor 😄😄😄😄

  • @MINEDITZZ69
    @MINEDITZZ69 4 ปีที่แล้ว

    Here may be slightly difference:
    from turtle import*
    pensize(3)
    def rectangle(color):
    begin_fill()
    fillcolor(color)
    for i in range(2):
    forward(300)
    right(90)
    forward(50)
    right(90)
    end_fill()
    up()
    goto(0,-200)
    down()
    goto(0,300)
    rectangle("orange")
    goto(0,250)
    rectangle("white")
    goto(0,200)
    rectangle("green")
    up()
    goto(150,250)
    down()
    circle(-25)
    right(90)
    up()
    goto(150,225)
    down()
    for i in range(21):
    color("blue")
    forward(23)
    back(23)
    left(17)
    hideturtle()

  • @vikastiwari10
    @vikastiwari10 6 ปีที่แล้ว +2

    That's nice is it advance level python code ?? Please elaborate this logic

    • @AmulsAcademy
      @AmulsAcademy  6 ปีที่แล้ว +2

      “Turtle” is a Python feature like a drawing board, we can draw different shapes over it.
      This is the simple basic code :)

    • @vikastiwari10
      @vikastiwari10 6 ปีที่แล้ว +1

      Thanks Amulya

  • @Lucky_Singh720
    @Lucky_Singh720 6 ปีที่แล้ว +1

    Apke pattern program bhi bhut ache the

  • @jayvijay6774
    @jayvijay6774 3 ปีที่แล้ว

    amazing work. i learnt a lot by watching your videos...
    thank you 3000
    i just done a small pattern(my name).
    from turtle import *
    bgcolor("blue")
    pencolor("orange")
    width(15)
    #v letter
    left(110)
    forward(110)
    penup()
    goto(0,0)
    pendown()
    right(40)
    forward(110)
    #i letter
    penup()
    goto(80,0)
    setheading(90)
    pendown()
    forward(100)
    penup()
    goto(60,100)
    right(90)
    pendown()
    forward(50)
    penup()
    goto(60,0)
    pendown()
    forward(50)
    #j letter
    pencolor("white")
    penup()
    goto(170,0)
    setheading(90)
    pendown()
    forward(100)
    penup()
    goto(145,100)
    right(90)
    pendown()
    forward(50)
    penup()
    goto(160,0)
    left(150)
    pendown()
    circle(-90,30)
    #A letter
    pencolor("green")
    penup()
    goto(210,0)
    right(45)
    pendown()
    forward(100)
    left(209)
    forward(100)
    penup()
    goto(220,40)
    left(80)
    pendown()
    forward(30)
    #y letter
    penup()
    goto(300,0)
    left(70)
    pendown()
    forward(110)
    penup()
    goto(312,50)
    left(50)
    pendown()
    forward(60)

  • @VivianMaduabum
    @VivianMaduabum 8 หลายเดือนก่อน

    thank you so much for this tutorial. i have a question. instead of drawing lines for the circle, i just used a different code to draw a full circle. Is it also correct?
    this is the code:
    t.up()
    t.goto(150,130)
    t.begin_fill()
    t.fillcolor("skyblue")
    t.circle(30)
    t.end_fill()

  • @narora8459
    @narora8459 3 ปีที่แล้ว +2

    This is covid
    I mean cool video😂😂😂

  • @KishoreKumar-zh9jf
    @KishoreKumar-zh9jf 6 ปีที่แล้ว +1

    You are super darling...😘😘

  • @Abdullah-Al-Akash
    @Abdullah-Al-Akash 5 ปีที่แล้ว +2

    madam i write same code with u but show that =>
    " Traceback (most recent call last):
    File "G:/Turtle Graphics/Flag.py", line 12, in
    t.up()
    TypeError: penup() missing 1 required positional argument: 'self'
    Process finished with exit code 1"
    i dont understand whta problem there!!!!!!

    • @AmulsAcademy
      @AmulsAcademy  5 ปีที่แล้ว

      Give me the program i will check :)

    • @Abdullah-Al-Akash
      @Abdullah-Al-Akash 5 ปีที่แล้ว

      import turtle
      def ractangle(color):
      t.begin_fill()
      t.fillcolor(color)
      for i in range(2):
      t.forward(400)
      t.right(90)
      t.forward(100)
      t.right(90)
      t.end_fill()
      t = turtle.Turtle
      t.up()
      t.goto(0,-300)
      t.down()
      t.goto(0,400)
      ractangle("green")

    • @Abdullah-Al-Akash
      @Abdullah-Al-Akash 5 ปีที่แล้ว +1

      Sorry madam , i have got my mistake. i get it now!!
      Thank You Madam!

  • @mgsindhu5777
    @mgsindhu5777 4 ปีที่แล้ว +1

    How can we move objects in turtle graphics in python

  • @Lucky_Singh720
    @Lucky_Singh720 6 ปีที่แล้ว +2

    Can we are jump the turtle with Co ordinate

    • @AmulsAcademy
      @AmulsAcademy  6 ปีที่แล้ว

      Yes :)
      You can use goto() and you can jump to any co ordinates :)

    • @Lucky_Singh720
      @Lucky_Singh720 6 ปีที่แล้ว +1

      Thanks

    • @Lucky_Singh720
      @Lucky_Singh720 6 ปีที่แล้ว +1

      Who to used Pygame module in python

    • @AmulsAcademy
      @AmulsAcademy  6 ปีที่แล้ว

      Pygame does not come with Python. Like Python, Pygame is available for free. You will have to download and install Pygame.

    • @Lucky_Singh720
      @Lucky_Singh720 6 ปีที่แล้ว

      How to install it please give me a link

  • @maaaaaass
    @maaaaaass 4 ปีที่แล้ว +1

    Kindly share python OOPS concepts videos

  • @sohaibss8073
    @sohaibss8073 4 ปีที่แล้ว

    How to make graphe window bigger because when i run the program i can't see all the flag even when i make it in full screen ?

  • @quranicscience9631
    @quranicscience9631 5 ปีที่แล้ว +1

    very good

  • @dasrahul505
    @dasrahul505 5 ปีที่แล้ว +1

    why does every time i run the code on jupyter notebook turtle does run but then says python turtle not responding also my orange box does have any color....help please!!!!!

    • @AmulsAcademy
      @AmulsAcademy  5 ปีที่แล้ว

      Add turtle.done() at the end and check :)

    • @dasrahul505
      @dasrahul505 5 ปีที่แล้ว

      @@AmulsAcademy thanks it worked!!!!

  • @TicTac02
    @TicTac02 4 ปีที่แล้ว

    I want to rotate Ashok chakra
    How i can do this ??
    Help plz
    🙏🙏

  • @s2613
    @s2613 6 ปีที่แล้ว +1

    That’s great

  • @Yada_li
    @Yada_li ปีที่แล้ว

    Ma'am please make video on freegames module

  • @roshanrajmahato480
    @roshanrajmahato480 6 ปีที่แล้ว +1

    Nice

  • @randysmart8548
    @randysmart8548 2 ปีที่แล้ว

    Saffron (244,196,48)

  • @syedalikhan5173
    @syedalikhan5173 5 ปีที่แล้ว

    how to make the Ashok chakra lines shorter

  • @dilipkumarpal5631
    @dilipkumarpal5631 11 หลายเดือนก่อน

    Spokes of the wheel are missing.

  • @vigneshsamala3769
    @vigneshsamala3769 2 ปีที่แล้ว

    How to draw lines inside circle

  • @golammostafarabby8110
    @golammostafarabby8110 5 ปีที่แล้ว +1

    how to draw a Bangladeshi national flag used python..
    i am sharing my code and here has some problem ...please help me...
    import turtle
    def rectangle (color):
    t.begin_fill()
    t.fillcolor(color)
    for i in range(2):
    t.forward(400)
    t.right(90)
    t.forward(200)
    t.right(90)
    t.end_fill()

    t = turtle.Turtle()
    t.up()
    t.pensize(4)
    t.goto(0,-300)
    t.down()
    t.goto(0,300)
    rectangle("green")
    t.goto(0,250)
    t.forward(200)
    t.color("red")
    t.circle(-50)
    t.color("black")

    • @AmulsAcademy
      @AmulsAcademy  5 ปีที่แล้ว +1

      import turtle
      def rectangle (color):
      t.begin_fill()
      t.fillcolor(color)
      for i in range(2):
      t.forward(400)
      t.right(90)
      t.forward(200)
      t.right(90)
      t.end_fill()
      t = turtle.Turtle()
      t.up()
      t.pensize(4)
      t.goto(0,-300)
      t.down()
      t.goto(0,300)
      rectangle("green")
      t.goto(0,250)
      t.up()
      t.forward(200)
      t.down()
      t.begin_fill()
      t.color("red")
      t.circle(-50)
      t.end_fill()
      t.color("black")
      t.hideturtle()
      :)

  • @nikhilmittal9008
    @nikhilmittal9008 6 ปีที่แล้ว +1

    Cursor screen par ruk nhi rha flag banne ke baad apne ap hi console screen band ho rhi hai

    • @nikhilmittal9008
      @nikhilmittal9008 6 ปีที่แล้ว +1

      I am using pycharm

    • @AmulsAcademy
      @AmulsAcademy  6 ปีที่แล้ว +1

      In the last line use turtle.exitonclick()
      If you put the commands into a file, you might have recognized that the turtle window vanishes after the turtle finished its movement. (That is because Python exits when your turtle has finished moving. Since the turtle window belongs to Python, it goes away as well.) To prevent that, just put turtle.exitonclick() at the bottom of your file. Now the window stays open until you click on it.
      If you are using IDLE it is not required.
      :)

    • @nikhilmittal9008
      @nikhilmittal9008 6 ปีที่แล้ว +1

      @@AmulsAcademy thanks..

  • @laishettyrakesh7087
    @laishettyrakesh7087 6 ปีที่แล้ว +1

    where is sound ?

  • @rashmisrivastava5246
    @rashmisrivastava5246 2 ปีที่แล้ว

    If I want to write jai Hind How To write it??

  • @quranicscience9631
    @quranicscience9631 5 ปีที่แล้ว

    Django tutorial koren

  • @ahmedaj6264
    @ahmedaj6264 6 ปีที่แล้ว +1

    Madam i want to drow somalia national flag help me

    • @AmulsAcademy
      @AmulsAcademy  6 ปีที่แล้ว +1

      you will get code to print star shape in google, then you just need to change color and background color
      Try by yourself if you need any help you can ask me back .
      :)

  • @zuniabuzar8689
    @zuniabuzar8689 6 หลายเดือนก่อน

    can you make a palestinian flag , pleassssse🥺

  • @dheeraj5023
    @dheeraj5023 6 ปีที่แล้ว +1

    Hello mem please make video in hindi

    • @AmulsAcademy
      @AmulsAcademy  6 ปีที่แล้ว

      I have plans i will try :)

    • @dheeraj5023
      @dheeraj5023 6 ปีที่แล้ว +1

      @@AmulsAcademy your voice is so nice

    • @dheeraj5023
      @dheeraj5023 6 ปีที่แล้ว +1

      @@AmulsAcademy 👍

    • @AmulsAcademy
      @AmulsAcademy  6 ปีที่แล้ว

      Thank you :)

  • @jimmyk1998
    @jimmyk1998 ปีที่แล้ว

    hey greate videos. how can i get in touch with you?

  • @arifanwer8189
    @arifanwer8189 6 ปีที่แล้ว +1

    Nice