<commit_before>---
layout: post
author: dpcolar
title: Dave's Concentric Circles
categories: post
---

For this assignment, I expermented with sizes and fills of circles.  The code uses random numbers in a range to select the colors.
<br>

```python
# Concentric Circles of random colors

import turtle
from random import randint

graphic = turtle.Turtle()
color_list = ['red','orange','yellow','green','violet','brown','blue','gray']

for circle_size in range(135,15,-15):
    pencolor = color_list[randint(0,7)]
    fillcolor = color_list[randint(0,7)]
    graphic.color(pencolor,fillcolor)

    if circle_size%2 is 0:
      graphic.fill(True)
    else:
      graphic.fill(False)
    graphic.pensize(randint(1,4))
    graphic.circle(circle_size)

turtle.done()

```

![alternately filled concentric circles](https://docs.google.com/file/d/0B6VrsFbpq7RIcEwtWkpmRXVDYlU)<commit_msg>Update 2013-09-09-Daves-circles.md<commit_after>---
layout: post
author: dpcolar
title: Dave's Concentric Circles
categories: post
---

For this assignment, I expermented with sizes and fills of circles.  The code uses random numbers in a range to select the colors.
<br>

```python
# Concentric Circles of random colors

import turtle
from random import randint

graphic = turtle.Turtle()
color_list = ['red','orange','yellow','green','violet','brown','blue','gray']

for circle_size in range(135,15,-15):
    pencolor = color_list[randint(0,7)]
    fillcolor = color_list[randint(0,7)]
    graphic.color(pencolor,fillcolor)

    if circle_size%2 is 0:
      graphic.fill(True)
    else:
      graphic.fill(False)
    graphic.pensize(randint(1,4))
    graphic.circle(circle_size)

turtle.done()

```

![alternately filled concentric circles](http://docs.google.com/file/d/0B6VrsFbpq7RIcEwtWkpmRXVDYlU)
{'fraction_non_alphanumeric': 0.12836322869955158, 'fraction_numerical': 0.02466367713004484, 'mean_word_length': 4.702875399361022, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3820900', 'n_tokens_mistral': 658, 'n_tokens_neox': 608, 'n_words': 148}