Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( In Python: i am a beginner so plz write comments so I can follow) 2. This question practices the use of a list method.

( In Python: i am a beginner so plz write comments so I can follow)

2.

This question practices the use of a list method. Assign to the variable grades a list of 10 letter

grades from among 'A', 'B', 'C', 'D', and 'F'. For example,

grades = ['A', 'F', 'C', 'F', 'A', 'B', 'A', 'C', 'A', 'B']

Write a Python expression that creates a list named frequency, in which the elements are the

number of times each of the letters A, B, C, D and F appear in grades. For example, for the above

value of grades, the following would be correct output.

[4, 2, 2, 0, 2]

Your expression must give the correct values for any list of grades, not just the one in your list.

Hint: use the list method count.

( In Python: i am a beginner so plz write comments so I can follow)

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago