For i in range(): error

so basically im making a simple abstract turtle drawing and im getting invalid syntax and when i look at the error log, nothing pops up
however, it highlights the “:” after i put e.g, for i in range(10):
this is the exact code

import turtle
from turtle import *
import turtle
from random import randint 
turtle.Screen()

turtle = Turtle()
turtle.pensize(9)
turtle.speed(10)
turtle.goto(-200, 200)
turtle.color("magenta")

playboy =Turtle()
playboy.pensize(3)
playboy.speed(10)
playboy.goto(-140, 140)
playboy.color("darkblue")

homeboy = Turtle()
homeboy.pensize(5)
homeboy.speed(10)
homeboy.goto(60, -60)
homeboy.color("cyan") 

pissboy = Turtle()
pissboy.pensize(7)
pissboy.goto(8-65, -80)
pissboy.speed(10)
pissboy.color("green")

bickerboy = Turtle()
bickerboy.pensize(1)
bickerboy.goto(-130, 120)
bickerboy.color("brown)"
for i in range(90):
    playboy.right(10)
    playboy.forward(40)
    playboy.left(i)

for i in range(50):
    turtle.backward(75)
    turtle.left(300)
    turtle.forward(9)

for i in range(40):
    homeboy.right(50)
    homeboy.circle(70)
    homeboy.left(30)
for i in range(30):
    pissboy.left(30)
    pissboy.forward(50)
    pissboy.backward(70)

for i in range(60):
    bickerboy.circle(30)
    bickerboy.backward(70)
    bickerboy.right(30)

i’d really appreciate some feedback because i genuinely have no idea what is wrong with my “for i in range():”
thank you!!

Please see How do I format code in my posts? if you’re posting code to the forums (it keeps indentation, doesn’t markup certain characters and generally makes code formatting easier for everyone).

Syntax errors in unexpected places are often from things like unclosed parentheses and similar things that must be closed. If you can’t find anything easily consider a process of elimination, e.g. edit out chunks of the code to see what does and does not work so you can narrow it down.

1 Like

It was working just fine before I added the code for bickerboy, that’s what puzzles me the most. I’ve tried removing the chunk of code it highlights and leaving the other almost identical chunks but the error simply transfers.

It’s very likely the error is before that point then, even if it was an accidental deletion or addition of a character that shouldn’t be there (e.g. accidental keypress).

1 Like

Here’s the code I assume you’re referring to:

See a problem?