Previous Lecture Complete and continue  

  Lesson 4: Variables

What the heck are variables? Well, watch the video and find out.

17 comments
Aman Tyagi
https://repl.it/FJp2/0
Aman Tyagi
Guys, check this out! What do you think it is.. a sunflower or an alloy wheel or a piece of art?

https://repl.it/FIVE/1
Aman Tyagi
Bob is a GIANT KID. lol.
#inclasshumor
Robert de los santos
import turtle
q=turtle
my_q=q.Turtle()
my_q.forward(200)
my_q.left(90)
my_q.forward(200)
my_q.left(90)
my_q.forward(200)
my_q.left(90)
my_q.forward(200)
my_q.left(90)
Craig
import turtle
my_turtle=turtle.Turtle()
x = my_turtle
x.forward(100)
x.right(90)
x.forward(100)
x.right(90)
x.forward(100)
x.right(90)
x.forward(100)
x.right(90)
x.forward(100)
x.left(45)
x.forward(100)
x.left(145)
x.forward(35)
x.right(180)
x.forward(35)
x.right(90)
x.forward(35)
x.left(180)
x.forward(35)
x.right(50)
x.forward(10)
Mark Bergsma
import turtle


my_turtle = turtle.Turtle()
x = my_turtle
x.forward(100)
x.left(110)
x.forward(100)
x.right(110)
x.forward(100)
Md Abdullah Al Maruf
How was tht?

import turtle
x=turtle
m_x=x.Turtle()
m_x.forward(100)
m_x.left(90)
m_x.forward(100)
m_x.left(90)
m_x.forward(100)
m_x.left(90)
m_x.forward(100)
m_x.left(90)
Jonas Abarham
This doesn't work because you musst let space between equal and letters or something.
Ereatara Kokiri
awesome
Dallas Snook
dallas = "6 foot tall, likes sports, likes money"
Kshitij Dayal
Hey Qazi!
What do i need to do in this lesson exercise?
Fortune
variables
abc = "learning is really fun"
defe = 3
ghi = 10
print (abc)
for i in range(10):
print (abc)
print (i)
print (defe)
print (i*defe)
Rafeh Qazi
learning is fun I agree!!
gokulakrishnan
=============== RESTART: C:/Users/Hp/Desktop/practices/tur.py ===============
Traceback (most recent call last):
File "C:/Users/Hp/Desktop/practices/tur.py", line 1, in
import turtle
File "C:/Users/Hp/Desktop/practices\turtle.py", line 2, in
my_turtle=turtle.Turtle()
AttributeError: module 'turtle' has no attribute 'Turtle'




this is what happen when i run the command!
Rafeh Qazi
Don't name your file turtle.py. That is the problem that was happening to me too lol.
kenneth
i cant see the images
Rafeh Qazi
In the video or in the comments?