Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I don't know how to use turtle to draw line chart, using Python. The question provided 2 lists, and asked to draw 2 graphs: RECORD

I don't know how to use turtle to draw line chart, using Python. The question provided 2 lists, and asked to draw 2 graphs:

RECORD = ['L', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'W', 'L', 'W', 'W',

'W', 'W', 'W', 'W', 'W', 'W', 'L', 'L', 'L', 'W', 'W', 'L', 'L',

'W', 'W', 'L', 'W', 'L', 'W', 'W', 'W', 'L', 'L', 'W', 'L', 'W',

'W', 'L', 'L', 'W', 'W', 'L', 'W', 'W', 'W', 'W', 'L', 'W', 'W',

'L', 'W', 'W', 'W', 'L', 'L', 'W', 'W', 'W', 'W', 'L', 'L', 'W',

'L', 'W', 'W', 'W', 'W', 'L', 'L', 'W', 'L', 'L', 'W', 'W', 'L',

'W', 'W', 'W', 'W', 'L', 'W', 'L', 'W', 'W', 'W', 'W', 'W', 'W',

'W', 'W', 'W', 'W', 'L', 'W', 'W', 'W', 'L', 'W', 'W', 'L', 'L',

'W', 'W', 'W', 'W', 'L', 'W', 'W', 'W', 'W', 'W', 'W', 'L', 'W',

'W', 'W', 'W', 'W', 'L', 'W', 'W', 'L', 'L', 'L', 'W', 'W', 'L',

'L', 'L', 'W', 'W', 'W', 'L', 'W', 'L', 'W', 'W', 'W', 'L', 'L',

'W', 'W', 'W', 'W', 'L', 'W', 'W', 'L', 'L', 'W', 'W', 'L', 'L',

'W', 'W', 'L', 'L', 'L', 'W']

RUNS = [4, 1, 3, 2, 7, 4, 3, 10, 8, 14, 7, 6, 7, 10, 3, 10, 9, 8, 7, 0,

1, 3, 4, 5, 3, 6, 4, 10, 6, 5, 5, 5, 6, 6, 2, 6, 5, 3, 5, 5, 5,

3, 6, 6, 4, 6, 5, 4, 4, 3, 6, 8, 1, 8, 8, 6, 2, 3, 5, 9, 6, 7,

2, 0, 4, 2, 2, 6, 5, 2, 6, 0, 9, 2, 1, 9, 14, 2, 5, 9, 9, 4, 1,

11, 1, 4, 11, 3, 10, 15, 7, 5, 8, 4, 6, 7, 6, 5, 1, 0, 9, 5, 6,

1, 4, 10, 3, 2, 1, 15, 4, 4, 5, 10, 10, 5, 19, 5, 6, 4, 2, 4, 7,

5, 0, 4, 3, 10, 7, 3, 1, 1, 8, 14, 9, 1, 6, 0, 8, 5, 9, 3, 3, 6,

7, 1, 4, 0, 5, 4, 2, 1, 11, 7, 4, 3, 6, 19, 3, 6, 5, 10]

The win/loss record. This will be a line chart. For every game, move the turtle to the right. For every win move the turtle up, and for every loss move the turtle down the same amount.

The runs record. This will be a scatterplot. For every game, move the turtle to the right and draw a circle reflecting the number of runs scored in that game. Wins and losses are different colors.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

8. How are they different from you? (specifically)

Answered: 1 week ago