Why this is don’t working?
first = green
second = red
response = input("What is the color? ")
if (response) == first:
print("It's green")
if (response) == second:
print("It's red")
Why this is don’t working?
first = green
second = red
response = input("What is the color? ")
if (response) == first:
print("It's green")
if (response) == second:
print("It's red")
Sorry, that wasn’t the best example.
Here is the one:
turtle_name = input("What is the name? ")
turtle_name = turtle.Turtle()
first_turtle = input("What is the name? ")
first_turtle = turtle.Turtle()
second_response = input("Wich one of them to move? ")
if (second_response) == turtle_name:
response = input("Choose move forward, move backard, turn right or turn left. ")
if (second_response) == first_turtle:
response = input("Choose move forward, move backard, turn right, turn left or none. ")
It’s basically a program to draw.
I don’t understand your question.
When i answer to the second response the name of one of them, the if statements don’t run.
turtle.Turtle means “The turtle type that is defined within the turtle module”.
I am trying to do a program to use two turtles to draw.
well the answer to the fixing of the program is there