Python Turtle - Circle Spirograph Tutorial

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

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

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

    Also if you want the Window to stay open after the turtle has completed the drawing so you can actually see it, include this code at the very end.
    turtle.done()

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

    because this is an older version of python that he's doing it on you might have to include:
    wn = turtle.Screen() then put wn before anything related to the screen and with the pen to draw you might have to do this:
    pen = turtle.Turtle() and put the pen before anything related to the pen

    • @marthab-c5226
      @marthab-c5226 4 ปีที่แล้ว +1

      David Godwin thank you!

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

      from turtle import *
      bgcolor("black")
      pensize(2)
      speed(0)
      for i in range(6):
      for colours in ["red", "magenta", "blue","cyan","green","yellow","white"]:
      color(colours)
      circle(100)
      left(10)
      hideturtle()

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

      you r right

  • @txicyt9949
    @txicyt9949 3 ปีที่แล้ว +8

    import turtle
    turtle.bgcolor("black")
    turtle.pensize(2)
    turtle.speed(0)
    for i in range(6):
    for colours in ["red", "magenta", "blue", "cyan", "green", "yellow", "white"]:
    turtle.color(colours)
    turtle.circle(100)
    turtle.left(10)
    turtle.hideturtle()

  • @dharryg
    @dharryg 10 หลายเดือนก่อน

    Can the center be moved left/right and up and down so that the spirograph rotates three-dimensionally?

  • @IbrahimAhmed-bj5wz
    @IbrahimAhmed-bj5wz 5 ปีที่แล้ว +14

    Worked! Thanks soo much!

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

    With the same drawing, but I want every six consecutive circles to be the same color, how do I do that please help me

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

    Thanks was struggling in project

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

    AttributeError: partially initialized module 'turtle' has no attribute 'bgcolor' (most likely dur to circular import) ??

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

    Which is the interface

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

    thx sir for this clear explanation it helped me a lot and now pythin turtle is ez for me !!!

  • @aliabbasov2905
    @aliabbasov2905 2 ปีที่แล้ว +10

    import turtle
    screen = turtle.Screen()
    screen.bgcolor("black")
    turtle.pensize(1)
    turtle.speed(0)
    for i in range(8):
    for colors in ["blue", "orange", "yellow", "green", "red", "aqua", "blue", "red"]:
    turtle.color(colors)
    turtle.circle(20)
    turtle.left(6)
    turtle.backward(10)
    turtle.done()
    turtle.pensize(3)
    for i in range(6):
    for colors in ["blue", "red", "green", "blue", "red", "green", "blue", "red"]:
    turtle.color(colors)
    turtle.circle(40)
    turtle.left(20)
    turtle.backward(30)
    turtle.done()

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

    Showing error turtle is not defined

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

    I cant do this.Iam using idle 3.10

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

    Hello mate , can you help me draw this spirograph without using the circle function and it should involve only one loop
    And not any def function also

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

    What program do you use

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

    It worked good for me, Idk much about python but gotta ask that can I save that art?

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

      I don't think so. Take a screenshot of it though and you could save a small copy.

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

      @@GeekTutorials1 Thanks for you're reply :)

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

    Helloo again, I was actually trying this code to draw the spirograph, but this time I am trying to make it like a rainbow, for example, the 6 blue circles get regrouped only by themselves then the other colours go the same. Could you help me finish it?
    That's the program:
    from turtle import *
    speed(900)
    list1 = ["brown","red","magenta","blue","green","orange"]
    for i in range (36):

    pencolor(list1[i%6])
    circle(100)
    right(10)

  • @睾丸おいしい
    @睾丸おいしい 3 ปีที่แล้ว +1

    Someone who understands. What word should I use when I want to determine the initial position of the turtle?

    • @GeekTutorials1
      @GeekTutorials1  3 ปีที่แล้ว +1

      The initial position is always 0,0

    • @睾丸おいしい
      @睾丸おいしい 3 ปีที่แล้ว

      Does that mean it can't be changed?

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

      @@睾丸おいしい It can easily be changed by using the goto() function.
      For example
      penup()
      goto(100, 200)
      pendown()

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

      ​@@GeekTutorials1 Hahaha thanks for that functions.
      This is what I did when I want to move to a certain coordinate: (I actually drew a line with a white color pen, so it seems moving)
      vDraw.pencolor ("white")
      vDraw.right(90)
      vDraw.forward (10)
      vDraw.left(90)
      vDraw.forward (10)
      #------------
      So now, I have this:
      vDraw.penup()
      vDraw.goto(vDraw.xcor() + 10, vDraw.ycor()+ 10)
      vDraw.pendown()
      #-----------
      Thanks

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

    Stupendous sir, I got it at 1st attempt itself. Very well explained.

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

    Thank you.This was very easy to follow.

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

    where it can code and run this ????

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

    Amazing so understandable and easy to follow!

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

    I used a slightly different program:
    from turtle import *
    color("black")
    width(2)
    speed(50)
    for i in range(6):
    for colors in ("red" , "magenta" , "blue" , "cyan" , "green" , "yellow" ,"orange"):
    color(colors)
    circle(100)
    left(10)
    exitonclick()

  • @jay2924
    @jay2924 3 ปีที่แล้ว +1

    can someone send a link to download python

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

      www.python.org/downloads/
      I prefer to use codewith.mu if you are a beginner.

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

    @geek tutorials why is range chosen 6 here ?

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

      I just thought it looked best. Try and change it to 5 or another number - see if you like the effect it produces.

    • @AyushVERMA-bp5jn
      @AyushVERMA-bp5jn 3 ปีที่แล้ว

      Because he chose 6 colors and the nested loop is running for a total of 36 times and after each iteration it makes a 10 degree turn so in total a 360 degree turn

  • @Bruh-rs6cp
    @Bruh-rs6cp 5 ปีที่แล้ว +1

    Whats apps are u using? Im currently using spyder from anaconda

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

      Nice, mate. I'm just using the general Python IDLE. Nothing fancy this way.

    • @Bruh-rs6cp
      @Bruh-rs6cp 5 ปีที่แล้ว

      @@GeekTutorials1 owh thx it was so laggy with spyder eww i cant stand it hahahaha

    • @Bruh-rs6cp
      @Bruh-rs6cp 5 ปีที่แล้ว

      @@GeekTutorials1 now im using idle too and it works smoothly

    • @Bruh-rs6cp
      @Bruh-rs6cp 5 ปีที่แล้ว

      And restarting turtle wont take so long with idle,100 times faster than spyder

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

    where do you code

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

      At home - sometimes in my study, sometimes on the toilet. Wherever

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

      @@GeekTutorials1 I thought which editor

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

      @@borissajlovic3208 it's called Code with Mu

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

    in my notebook it is showing error

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

    why did you have it loop 6 times?

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

      It was enough rotations to make a complete circular shape.. It was a bit of trial and error to get that number.

    • @zakariaait-allal7570
      @zakariaait-allal7570 3 ปีที่แล้ว +1

      6 colors looping 6 times with a 10 degree rotation => 6x6x10 = 360° full circle, I guess

  • @alanwarlimdiwala2737
    @alanwarlimdiwala2737 3 ปีที่แล้ว +1

    thx for this code it helped me in my project

    • @Mukeshtiger2468
      @Mukeshtiger2468 14 วันที่ผ่านมา

      youtube.com/@Mukeshtiger2468si=vrsJ8xio9EJQU8gP

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

    from turtle import *
    #the we don't need to type turtle in every function

  • @Aaaaaraaaav
    @Aaaaaraaaav 3 ปีที่แล้ว +1

    It works!!!!!!!!!!! Thank you for teaching the coding!!!!!

  • @NagaRaju-tz4ry
    @NagaRaju-tz4ry 3 ปีที่แล้ว

    What is the use of turtle.left(10) ??

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

      Turn the turtle left by 10 degrees

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

    It's working but i can't understand the code

    • @GeekTutorials1
      @GeekTutorials1  3 ปีที่แล้ว +1

      You basically draw a circle once on the page. You then repeat drawing this circle many times, each time changing the colour to one of the set colours. Each circle is slightly spaced apart from the previous.

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

    Hello, thank you for this helpful video. Can you make another video with the same result but using only one loop not a nested loop?

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

      You can, but it would lose the multi colour effect?

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

      @@GeekTutorials1 yes exactly but actually i have an exam and i really would like to get ur help 😅 it is asked to draw the same drawing with the same colours but using only one loop, can i get ur help please??😂❤️

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

      @@ejs961 That would be rather tedious, I'd imagine. I will look into it for you.

    • @ejs961
      @ejs961 3 ปีที่แล้ว +1

      @@GeekTutorials1 Thank you so much for your interest in helping. You're amazing. So thankful🙏

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

      @@pain1946 no actually im in Lebanon

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

    File "e:\Software\python\circle.py", line 9, in
    turtle.color(colours)
    NameError: name 'colours' is not defined

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

      Check where you spelt colours earlier - is it spelt the same? Case sensitive.

  • @pankajkumar-vk4cl
    @pankajkumar-vk4cl 3 ปีที่แล้ว +1

    You are awesome, and your skills ❤️❤️❤️👍

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

    thank you, it was easy to understand :D

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

    It's showing.attribute error..turtle has no bgcolour

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

      Spell colour the American way - without the 'u'
      color

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

      becz its an old version and no its saays the saame

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

      @@memeteam8611 Works for me in the latest and older version. Must be a very old version they are using?

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

      Btw iam repl it website

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

      If u can try to make the same thing or something else on repl it it would be pleasure ☺️

  • @aayushtechbuddy5532
    @aayushtechbuddy5532 3 ปีที่แล้ว +1

    Thanks A Lot!
    It Worked!

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

    can i make the background multicolour?

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

      You could if you wanted to.

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

      @@GeekTutorials1 what code would i need to do, cos i tried everything i know and nothing worked.

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

      @@misan2002 Just click Run. You don't need to save it if you don't want to. And you don't need to press F5. Just click Run.

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

      @@twinkle_6260 do u know the code for it

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

    it is showing that there is a syntax error

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

      That usually means you forgot a bracket, quotation marks, comma, etc. It's usually a punctuation issue

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

      oh yeah
      thank you

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

    It's not working on vscode
    It's not just working
    Tried it a lot of times

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

      try his new version th-cam.com/video/Jmg99sKAxqQ/w-d-xo.html

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

    What is the app name

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

      It's the official Python app. I use Python IDLE

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

    for use it in vs code, first use a while True

  • @BLANK-xk5or
    @BLANK-xk5or 3 ปีที่แล้ว

    But the results didn't came but when I changed some of the words then it finally popped up thanks anyway

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

    It's not working
    Help me

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

      Do you get an error message? What's not working exactly?

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

      @@GeekTutorials1 now it's okay the problem was from the laptop.
      Thank you . It's too nice .

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

      @@GeekTutorials1 invalid syntax

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

      @@lehenge_me_wifi8406 Yeah good.

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

    why did u write i?

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

      It's just a random letter that I chose. You can replace the 'i' with any word or letter that you'd like.

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

      @@GeekTutorials1 ah thank you

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

    Wow Sir! I like it Keep It Up Like That For Your Amazing Videos! Great Tutorials!

  • @awesomeiram
    @awesomeiram 3 ปีที่แล้ว +5

    Altered Code A Bit And Ended Up With A REALLY COOL PATTERN!
    import turtle
    screen = turtle.Screen()
    screen.bgcolor("black")
    turtle.pensize(5)
    turtle.speed(0)
    enabled = True
    while enabled == True:
    for colours in ["white", "red", "magenta", "blue", "cyan", "pink", "yellow", "orange"]:
    turtle.color(colours)
    turtle.circle(1000)
    turtle.left(5)
    turtle.done()

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

    it doesn't work for me.

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

    thank you soooooooooooooooo much buddy it helped me a looooooooooooot

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

    Can you help me write the same code, but with a vacuum circle in the middle. I want to communicate with you

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

      What is a vacuum circle? I am happy to help but don't understand your requests, sorry. I prefer to just connect here in the comments.

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

      He means that the circles not to revolve around one point, but around empty circle

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

      After the circle command, put a forward 10 or something then the left command and it should leave you with a nice little circle in the middle

  • @HamzaAli-ou5ld
    @HamzaAli-ou5ld 4 ปีที่แล้ว +1

    Mine says invalid syntax on the line that has the colors it doesn't run this is my code:
    import turtle
    turtle.bgcolor("black")
    turtle.pensize(2)
    turtle.speed(0)
    for i in range(6):
    for colours in ["red", "magenta", "blue", "cyan", "green", "yellow", "white"]
    turtle.color(colours)
    turtle.circle(100)
    turtle.left(10)
    turtle.hideturtle()

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

      Tough one. What does the error say exactly? I can't see a problem

    • @HamzaAli-ou5ld
      @HamzaAli-ou5ld 4 ปีที่แล้ว

      @@GeekTutorials1 It says invalid syntax

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

      @@HamzaAli-ou5ld There is always more to the error that pinpoints the exact location of the error. What else does it say?

    • @HamzaAli-ou5ld
      @HamzaAli-ou5ld 4 ปีที่แล้ว

      @@GeekTutorials1 I fixed it the problem was that there was no ":" at the end of the color line

    • @HamzaAli-ou5ld
      @HamzaAli-ou5ld 4 ปีที่แล้ว

      @Sasha Bennett Thank you it worked

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

    why turtle is not working in IDLE

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

      Either you didn’t input it or you need to upgrade to the newest IDLE

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

    In my python it's showing attribute error!!🤔

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

      RENAME the file for a random name and take the file to a new folder and maybe its gonna work,

  • @MahendraSingh-sp4co
    @MahendraSingh-sp4co 3 ปีที่แล้ว

    Amazing code

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

    Awesomee!!!

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

    It's saying no module found of name Turtle😭. Pls help.

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

      Try a lowercase 'T' in turtle.

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

      @@GeekTutorials1 i tried but it is saying the same.😭

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

      @@renusingh9254 i had a problem like this what i did was ctrl+shift+p search select interpreter click it then click python 3.8.5 64 bit sorry this is late

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

      @@popcornstewart thank you very much.🙂

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

    can you pass me the code? please is for school

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

      The code is in the description of my other video.
      th-cam.com/video/Jmg99sKAxqQ/w-d-xo.html

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

      @@GeekTutorials1 Ty i love you

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

    Pls tell what to do noe

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

    its not working on updated version of python.

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

    NameError: name 'turle' is not defined

    • @GeekTutorials1
      @GeekTutorials1  3 ปีที่แล้ว +1

      Spell Turtle again - you're missing the second 't'

  • @coderaniket7454
    @coderaniket7454 3 ปีที่แล้ว +1

    Wow!sir you are awesome
    Is wark

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

      There you can find many python projects with source code..
      th-cam.com/play/PLX7Dd6nLHh86e4-fJC16MjsxkpraqdNoG.html

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

    Thank you

  • @alex9igh394
    @alex9igh394 3 ปีที่แล้ว +1

    tnx bro

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

    Love it!

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

    it's ( or [ ?

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

      Depends hen you're using them - you will use both at different times.

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

    May I get the source code

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

    unfortunately this isn't work

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

      It does work. We just need to find out what issue you're having... Tell me more

  • @latika7040
    @latika7040 3 ปีที่แล้ว +1

    Amazing.

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

    it is not supporting in my python man

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

    The speed is so slow of the notebook

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

    It's not working for me my version is idle 3.9.1

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

    it don't work for me?

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

      Show me your code. It definitely works

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

    good

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

    that is soooo cool. bruh

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

      I'm doin that right now. literaly

  • @zafreennazarali3696
    @zafreennazarali3696 3 ปีที่แล้ว +1

    This is the script with a loop:
    while True:
    import turtle
    pen = turtle.Turtle(2)
    wn=turtle. Screen()
    wn. bgcolor("black")
    turtle.speed(0)
    for i in range(6):
    for colours in ["red", "blue", "magenta", "cyan", "green", "yellow", "white"]:
    turtle.color(colours)
    turtle.circle(100)
    turtle.left(10)
    turtle.hideturtle
    This is without:
    import turtle
    pen = turtle.Turtle(2)
    wn=turtle. Screen()
    wn. bgcolor("black")
    turtle.speed(0)
    for i in range(6):
    for colours in ["red", "blue", "magenta", "cyan", "green", "yellow", "white"]:
    turtle.color(colours)
    turtle.circle(100)
    turtle.left(10)
    turtle.hideturtle

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

    i can't speed 0😐😐😐😐😐😐😐😐😐😐

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

      Bugger. Do you have to sit and watch the whole thing draw slowly?

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

    invalid sintax

    • @GeekTutorials1
      @GeekTutorials1  3 ปีที่แล้ว +1

      Usually means you made a spelling error or forgot a bracket somewhere.

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

    It's not work

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

      If you watch the tutorial 'til the end, you will see that it does work just fine 👍

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

      @@GeekTutorials1 let see