'''lecture08_find_bug1.py Oliver W. Layton CS151: Computational Thinking: Visual Media Spring 2021 Find 2 bugs below ''' import turtle def drawline(penWidth, color='blue'): turtle.color(color) # Bug 1: not setting color based on the parameter turtle.width(penWidth) turtle.forward(200) turtle.color('black') turtle.width(1) # Main code if __name__ == '__main__': penWidth = 10 theColor = (0, 1, 0) drawline(penWidth, color=theColor) # drawline(penWidth) turtle.exitonclick() # Bug 2: This was not intended in if __name__ == '__main__':