Debugging

This is the place for queries that don't fit in any of the other categories.

Debugging

Postby 1W0909 » Mon Dec 30, 2013 1:40 am

I can not debugg for my life, can you please help me! this is what i did so far. THANK YOU SO MUCH!!!

Code: Select all
Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from turtle import *
>>> shape("turtle")
>>> car_height = 50
>>> circle(car_height, steps = 4)
>>> left(90)
>>> circle(car_height, steps = 4)
>>> left(90)
>>> circle(car_height, steps = 4)
>>> left(90)
>>> circle(car_height, steps = 4)
>>> penup()
>>> fd(50)
>>> back(25)
>>> fd(25)
>>> left(90)
>>> left(180)
>>> pendown()
>>> two_lenght = 25
>>> fd(two_lenght)
>>> back(two_lenght)
>>> right(45)
>>> left(45)
>>> left(45)
>>> fd(two_lenght)
>>> left(45)
>>> right(90)
>>> left(180)
>>> fd(two_lenght)
>>> penup()
>>> goto(0,0)
>>> fd(50)
>>> circle(25)
>>> circle(12.5)
>>> pendown()
>>> circle(12.5)
>>> penup()
>>> goto(0,0)
>>> left(90)
>>> fd(50)
>>> left(90)
>>> fd(25)
>>> back(25)
>>> pendown()
>>> fd(25)
>>> right(90)
>>> left(180)
>>> fd(5)
>>> fd(7)
>>> right(90)
>>> left(180)
>>> fd(12)
>>> fd(13)
>>> right(90)
>>> fd(12)
>>> left(90)
>>> right(180)
>>> fd(12)
>>> fd(13)
>>> penup()
>>> goto(0,0)
>>> fd(50)
>>> left(90)
>>> left(180)
>>> fd(25)
>>> right(90)
>>> left(180)
>>> back(12)
>>> seven = 12+25
>>> fd(seven)
>>> pendown()
>>> back(seven)
>>> right(45)
>>> left(45)
>>> left(45)
>>> fd(seven)
>>> back(seven)
>>> fd(seven+5)
>>> fd(5)
>>> exitonclick()
Last edited by Mekire on Mon Dec 30, 2013 2:12 am, edited 1 time in total.
Reason: First post lock. Code tags.
1W0909
 
Posts: 1
Joined: Mon Dec 30, 2013 1:37 am

Re: Debugging

Postby micseydel » Mon Dec 30, 2013 10:54 am

Debugging involves taking existing code, a goal, acknowledging the difference between the two and trying to resolve that difference. You haven't described any goal here, so we can't help you "debug" this.
Join the #python-forum IRC channel on irc.freenode.net!
User avatar
micseydel
 
Posts: 1128
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA


Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 10 guests