Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN PYTHON LANGUAGE PLEASE: Lab Activity 3.1 Given the list of student homework grades >>> grades = [9, 7, 10, 3, 9, 6, 6, 2]

IN PYTHON LANGUAGE PLEASE:

Lab Activity 3.1

Given the list of student homework grades

>>> grades = [9, 7, 10, 3, 9, 6, 6, 2]

Write:

a) An expression that evaluates to the number of 7 grades

b) A statement that changes the last grade to 4

c) An expression that evaluates to the maximum grade

d) A statement that sorts the list grades

e) An expression that evaluates to the average grade

Lab Activity 3.2

In what order are the operators in the following expressions evaluated?

a) 2 + 3 == 4 or a >= 5

b) Lst[1] * -3 < -10 == 0

c) (lst[1] * -3 < -10) in [0, True]

d) 2 * 3 ** 2

e) 4 / 2 in [1, 2, 3]

Lab Activity 3.3

What is the type of the object that these expressions evaluate to?

a) False + False

b) 2 * 3 ** 2.0

c) 4 // 2 + 4 % 2

d) 2 + 3 == 4 or 5 >= 5

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

Explain the various techniques of training and development.

Answered: 1 week ago

Question

Explain the various techniques of Management Development.

Answered: 1 week ago