## Learn Python Programming – 4 – Interactive Shell vs. Script

– Okay, in this video, I’m gonna go over the solution

to the previous problem that I posed to you, and also, we’re gonna learn how to write the turtle, the entire thing, in one go. So, the problem that I posed to you is, make a square with the turtle. Well, in your case, let’s see how you could do exactly that. So, let me find the file

where we opened up the turtle. Let me close that guy right there. Copy this line and paste it right there. Okay, my turtle has begun. Well, the idea is simple. I take this line forward, and go 100. Now, since sometimes programmers are lazy, I don’t want to keep writing

this over and over again, so one thing I can do

to make my life easier is go to the line that I want to click on, I want to use, basically. Go to that line, click my mouse there, hit ‘enter’, it brings

that down at the bottom, as you can see right here. And now I can just hit ‘enter’. So, you can see my turtle

just moved left, okay? Now it’s facing up. Now what I want to do is

move it forward again, and you can see that it’s facing up again, er, I’m sorry, it’s … It moved up, now I need

to make it face left. So, how do I do that? I go left, make it turn 90 degrees, and you can see it turned 90 degrees. Now I want it to move 100 again. You can see it move forward. And 90 degrees, and then 100 once again, and I have made the square. Now, what I want you to be able to do is, make a Python file, which means that, remember this thing that

we opened up right here, where we write all of the code at once? So, for example, I’m gonna close it, I’m gonna show you how

to open it again, okay? So, I’m gonna close this one, and I will simply open it again. ‘New file’, or ‘Command-N’. And I will go and put

it to the right side, just so I have these side by side, and I will say something

like ‘import turtle’. Remember that command. If you don’t use that command and you try to do ‘turtle’, your program will be like, “What the heck is ‘turtle’?” So, by doing ‘import turtle’, now it knows what ‘turtle’ is. It’s like when you’re

talking about your friends, if you talk about your friend John, right? Like, let’s say you’re

talking about your friend John to your mom, or to your dad, and you’re like, “Dad, this guy blah blah blah”, you’re dad’s gonna be like, “Who the heck is John?” So, you’re gonna be like, “Oh, yeah, you remember John

from my fifth grade class?” And then your dad, if

you’re talking to him, he’s gonna say, “Oh, okay, I know who

you’re talking about”. So, ‘import’ is basically like, hey, Python, import that turtle that

those coders wrote, and now we can use it, and Python is like, “Oh, that turtle”, but if you don’t have this

‘import’ command here, Python’s gonna be like, “What the heck? “What turtle are you talking about? “You must be out of your mind.” Anyways. We’re gonna import this turtle. Alright, so now here’s

what I want you to do. I want you to write a

script that makes the turtle in one single go, okay? And I want you to make

that square with the turtle straight up in one go. For example, let’s come over here to our

script that I’ve written, and if I write stuff here, it does things immediately, right? As you saw, but if I come to my

right side over here … Oh, by the way, just one quick note. Whatever you do, do not

name this file ‘turtle.py’. You can name it ‘turtle_game’, or ‘game’, or something else, just don’t name it turtle, because then it confuses this turtle here with this file, and everything goes all over the place. So, don’t do that, ’cause I ended up doing that

and it caused lots of problems. Alright, so let me just

show you what happens when I run this file. I’ll go to ‘Run’, I’ll hit ‘Run module’, and hit ‘OK’. And you can see that my turtle went and did all those things in one go. How cool is that? So you don’t have to sit

there, type it all in. You can just write it in one go, and it’ll do that every single time. So, I want you to work on that square, but before you go and do that, I just want to show you what

this file actually looks like. So, if I go to, let’s say, ‘Documents’, and ‘Clever Programmer’, ‘Practice Exercises’, and we take a look at

this file, ‘turtle_game’, it’s just a text file with

this code in here, okay? That’s really it, that’s

all that’s going on in here. So, I’m gonna leave it here. The code that you write for the square, I want you to either go

to the Youtube place, Youtube channel, and

post it in the comments, or I want you to paste your

code right here in the comments on cleverprogrammer.com, okay? I’m gonna take a look at it. I will see you in the next video.

I thought turtle was an object not a file???

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

Thx a lot dude

Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)] on win32

Type "copyright", "credits" or "license()" for more information.

>>> import turtle

>>>

>>> my_turtle=turtle.Turtle()

>>> my turtle.forward(200)

SyntaxError: invalid syntax

>>> my_turtle.forward(200)

>>> my_turtle.left(90)

>>> my_turtle.forward(200)

>>> my_turtle.left(90)

>>> my_turtle.forward(200)

>>> my_turtle.left(90)

>>> my_turtle.forward(200)

>>> my_turtle.right(90)

>>> my_turtle.forward(200)

>>> my_turtle.left(90)

>>> my_turtle.forward(200) and my_turtle.left(90)

>>> my_turtle.left(90)

import turtle

#window properties

window = turtle.Screen()

window.bgcolor("lightgrey")

#turtle properties

minhaturt = turtle.Turtle()

minhaturt.shape("turtle")

minhaturt.color("blue")

minhaturt.speed(1)

def square_turt():

for i in range(1, 5):

minhaturt.forward(100)

minhaturt.left(90)

square_turt()

>>> import turtle

>>> my_turtle = turtle.Turtle()

>>>

>>> for i in range(4):

my_turtle.forward(100)

my_turtle.left(90)

>>>

it is not work in this is what i typed

>>> import turtle

>>>

>>>

>>>

>>> my_turtle = turtle.turtle()

Traceback (most recent call last):

File "<pyshell#4>", line 1, in <module>

my_turtle = turtle.turtle()

AttributeError: 'module' object has no attribute 'turtle'

mt.left(10)

mt.circle(20)

import turtle as tt

my_tt = tt.Turtle()

turns = 0

while turns < 4:

my_tt.forward(100);

my_tt.left(90);

turns = turns + 1

@#$%&*! cool

i love how u trasfer the computer world to the real world, or more common innerstandable examples…. day 1 due to your proper guidance and mentorship

Hii!! My question is did the turtle graphics will work in python 2.7?

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

Love your videos thanks soo much <3

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward (100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

<3

my_turtle=turtle.Turtle()

>>> my_turtle.circle(30)

>>> my_turtle.circle(60)

>>> my_turtle.circle(90)

>>> my_turtle.circle(120)

>>> my_turtle.circle(150)

>>> my_turtle.circle(180)

>>> my_turtle.forward(150)

>>> my_turtle.forward(30)

>>> my_turtle.left(90)

>>> my_turtle.forward(300)

>>> my_turtle.forward(30)

>>> my_turtle.forward(30)

>>> my_turtle.left(90)

>>> my_turtle.forward(360)

>>> my_turtle.left(90)

>>> my_turtle.forward(360)

>>> my_turtle.left(90)

>>> my_turtle.forward(180)

import turtle

tt = turtle.Turtle()

tt.forward(200)

tt.left(90)

tt.forward(200)

tt.left(90)

tt.forward(200)

tt.left(90)

tt.forward(200)

Seeing the turtle make a square is satisfying haha.

How I made the square! ~

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

I dont have the run option

import turtle

trt = turtle.Turtle();trt.forward(100);trt.left(90);trt.forward(100);trt.left(90);trt.forward(100);trt.left(90);trt.forward(200);trt.right(90);trt.forward(100);trt.right(90);trt.forward(100);trt.right(90);trt.forward(100)

dude this is insane

Import turtle

a = turtle.Turtle()

a.forward(100)

a.left(90)

a.forward(100)

a.left(90)

a.forward(100)

a.left(90)

a.forward(100)

sir your teaching style is awesome i love it

import turtle

my_turtle=turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

my_turtle=turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

print("Yay i wrote my first real thing. What do you think?")

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.circle(4)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.circle(4)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.circle(100)

my_turtle.circle(4)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.circle(4)

my_turtle.circle(100)

bit diffrent

first letter of my name xD

import turtle

x = turtle.Turtle()

x.forward(200)

x.back(100)

x.left(90)

x.forward(200)

x.left(90)

x.forward(100)

x.left(180)

x.forward(200)

Is it necessary to assign the turtle to my_turtle . Can't we assign another variable like x

import turtle

>>>

>>>

>>> my_turtle = turtle.Turtle()

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

Hey Qazi,

i wish to ask you one thing, i am using PyCharm. is it fine or do i have to do some modifications>???

import turtle

my_turtle=turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

Traceback (most recent call last):

File "/Users/Nick/Documents/game.py", line 3, in <module>

my_turtle.turtle.Turtle()

NameError: name 'my_turtle' is not defined

import turtle

x=turtle.Turtle()

side_num=4

side_length=100

angle=360/side_num

for i in range(side_num):

x.forward(side_length)

x.right(angle)

turtle.done()

import turtle

my_turtle=turtle.Turtle()

my_turtle.forward(50)

my_turtle.right(90)

my_turtle.forward(50)

my_turtle.right(90)

my_turtle.forward(50)

my_turtle.right(90)

my_turtle.forward(50)

import turtle

x=turtle.Turtle()

x.circle(200)

x.penup()

x.goto(0,8)

x.pendown()

x.circle(70)

x.penup()

x.goto(100,160)

x.pendown()

x.circle(50)

x.circle(30)

x.penup()

x.goto(-100,160)

x.pendown()

x.circle(50)

x.circle(30)

x.penup()

x.forward(1000)

turtle.done()

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

>>> my_turtle=turtle.Turtle()

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

my_turtle= turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

This will make a square

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

You can simply use a loop to draw a square

import turtle

for steps in range(4):

turtle.forawrd.(100)

turtle.right(90)

Hey bro I am watching your videos and subscribing. I want to invite you over to steemit https://steemit.com/@stateless1?r=stateless1 You can make alot of crypto there. I hope you check it out and apply for an account. they are still free

how to duplicate sentence more fast?

import turtle

>>> my_turtle = turtle.Turtle()

>>> my_turtle.forward(300)

>>> my_turtle.left(90)

>>> my_turtle.forward(300)

>>> my_turtle.left(90)

>>> my_turtle.forward(300)

>>> my_turtle.left(90)

>>> my_turtle.left(90)

>>> my_turtle.forward(300)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(200)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(200)

my_turtle.right(180)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

Turtle() its function calling please explain

Sir, I have made a word 'PYTHON' with the use of turtle should I paste that code in to this comment section???

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

This is awesome

man it doesn't work on my laptop

that turtle

Do theses all work using microsoft?

import turtle

my_turtle= turtle.Turtle()

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

import turtle

my_turtle=turtle.Turtle()

my_turtle=turtle.forward(275)

my_turtle=turtle.left(90)

my_turtle=turtle.forward(275)

my_turtle=turtle.left(90)

my_turtle=turtle.forward(275)

my_turtle=turtle.left(90)

mt_turtle=turtle.forward(275)

i didn't understand script

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle=turtle.TURTLE

AttributeError: module 'turtle' has no attribute 'TURTLE' what does it mea

ns sir

import turtle

tim = turtle.Turtle()

tim.forward (100)

tim.right (90)

tim.forward (100)

tim.right (90)

tim.forward (100)

tim.right (90)

tim.forward (100)

tim.right (90)

import turtle

my_turtle = turtle.Turtle()

count = 0

while count < 4:

my_turtle.left(90)

my_turtle.forward(100)

count += 1

import turtle

tacky=turtle.Turtle()

tacky.forward(100)

tacky.right(90)

tacky.forward(100)

tacky.right(90)

tacky.forward(100)

tacky.right(90)

tacky.forward(100)

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

# Make a square with the turtle.

import turtle

My_Square= turtle.Turtle() # invoking the turtle class and assigning object name

My_screen=turtle.Screen() # invoking the screen class and assigning object name

My_screen.bgcolor("Black") # setting screen back ground color

My_Square.pencolor("White") # setting square turtle pen color

My_Square.forward(100) # setting forward mesaurement for moving the trutle

My_Square.left(90) # setting angel of degree for direction change of turtle

My_Square.forward(100)

My_Square.left(90)

My_Square.forward(100)

My_Square.left(90)

My_Square.forward(100)

My_Square.hideturtle() # removing the turtle

how do we fill color inside the square ?

I made more then 1 turtle and created a square with a "X" inside it

import turtle

turtle1 = turtle.Turtle()

turtle2 = turtle.Turtle()

turtle2 = turtle.Turtle()

turtle3 = turtle.Turtle()

turtle4 = turtle.Turtle()

turtle1.forward(100)

turtle2.left(90)

turtle2.forward(100)

turtle3.left(180)

turtle3.forward(100)

turtle4.right(90)

turtle4.forward(100)

turtle5 = turtle.Turtle()

turtle5.left(45)

turtle5.forward(141.4213562373)

turtle5.backward(282.8427124746)

turtle6 = turtle.Turtle()

turtle6.right(45)

turtle6.forward(141.4213562373)

turtle6.backward(282.8427124746)

turtle6.left(45)

turtle6.forward(100)

turtle6.forward(100)

turtle6.right(90)

turtle.forward(100)

turtle6.forward(100)

turtle6.forward(100)

turtle6.right(90)

turtle6.forward(100)

turtle6.forward(100)

turtle6.right(90)

turtle6.forward(200)

turtle6.left(45)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

Got mine to work when I realized how to do it, so here's that code

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

bob = turtle.Turtle()

bob.speed(1)

def mysqr(x):

bob.forward(100)

bob.left(90)

for i in range(4):

mysqr(i)

import turtle

mt = turtle.Turtle()

mt.forward(100)

mt.left(90)

mt.forward(100)

mt.left(90)

mt.forward(100)

mt.left(90)

mt.forward(100)

I like learning from this guy.

import turtle

bob = turtle.Turtle()

bob.forward(100)

bob.left(90)

bob.forward(100)

bob.left(90)

bob.forward(100)

bob.left(90)

bob.forward(100)

Bruh, u need to give a bit of more details in ur videos. U just started by writing import turtle. A beginner won't know what a turtle is. And u never taught that Turtle() function. U just started, and things are gonna go over the minds of beginners.

import turtle

>>>

>>> my_turtle = turtle.Turtle()

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.right(90)

>>> my_turtle.forward(100)

>>> my_turtle.right(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.right(90)

>>> my_turtle.forward(100)

>>> my_turtle.right(90)

>>> my_turtle.forward(100)

>>> my_turtle.right(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.right(90)

my_turtle.forward(100)

>

import turtle

my_turtle = turtle.Turtle()

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

my_turtle=turtle.Turtle()

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

my_turtle.right(90)

my_turtle.forward(100)

It is say that my turtle is not defined. What can I do. I have made turtle several time. Buy unfortunately don't know why this is happening

Please help! When running the code in the command window, it works fine. However, when running my Turtle_game.py-file, the animation shows up and draws a box. BUT the animation window closes as soon as its drawn and I get the following ERROR messages:

2019-02-23 05:13:09.883 Python[1311:55258] isPrefsCreateCacheFromEnabledAndDefaultInputSources – can't find anything from GetInputSourceEnabledPrefs, use defaultASCIIKeyLayoutDict = <CFBasicHash 0x7f8ef8c57cb0 [0x7fff86dd58f0]>{type = mutable dict, count = 3,

entries =>

0 : <CFString 0x7fff86e43eb8 [0x7fff86dd58f0]>{contents = "InputSourceKind"} = <CFString 0x7fff86e893f8 [0x7fff86dd58f0]>{contents = "Keyboard Layout"}

1 : <CFString 0x7fff86e75538 [0x7fff86dd58f0]>{contents = "KeyboardLayout ID"} = <CFNumber 0x737 [0x7fff86dd58f0]>{value = +7, type = kCFNumberSInt64Type}

9 : <CFString 0x7fff86e3ebb8 [0x7fff86dd58f0]>{contents = "KeyboardLayout Name"} = <CFString 0x7fff86e25038 [0x7fff86dd58f0]>{contents = "Swedish – Pro"}

}

import turtlemy_turtle = turtle.Turtle()

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

import turtle

>>> my_turtle = turtle.Turtle()

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

>>> my_turtle.left(90)

>>> my_turtle.forward(100)

You are superb… Actually amazing but lack of subs doesn't motivate you for creating more and more… Right?

my_turtle = turtle.Turtle()

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle.left(90)

my_turtle.forward(200)

my_turtle=turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

who the hell is john hahaha lol u r a good teacher as well a funny guy

You are awesome!

2 adds are very annoying!!

import turtle

my_turtle = turtle.Turtle()

my_turtle.fd(100)

my_turtle.lt(90)

my_turtle.fd(100)

my_turtle.lt(90)

my_turtle.fd(100)

my_turtle.lt(90)

my_turtle.fd(100)

import turtle

my_turtle =turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

square code-

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

import turtle

myturtle=turtle.turtle()

myturtle.forward(100)

myturtle.right(90)

myturtle.forward(100)

myturtle.right(90)

myturtle.forward(100)

myturtle.right(100)

myturtle.forward(100)

import turtle

my_turtle = turtle.Turtle()

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)

my_turtle.left(90)

my_turtle.forward(100)