Here i m just try input and draw a box, but i m not to do draw a box, i dont know pls explain ...what i can't... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Here i m just try input and draw a box, but i m not to do draw a box, i dont know pls explain ...what i can't...

import turtle my_box=turtle.Turtle() length=input('enter box length') angle=input ('enter box angle') my_box.forward(length) my_box.left(size)

3rd Jul 2017, 4:11 PM
Karthick Raj
Karthick Raj - avatar
1 Answer
0
You should initiate the screen with turtle.Screen() and change my_box.left(size) to my_box.left(angle)
8th Jul 2017, 8:45 AM
Cailyn Baksh