subject

A restaurant recorded the ages of customers on two separate days. You are going to write a program to compare the number of customers in their thirties (ages 30 to 39). What is the missing line of code?

customerAges = [33, 23, 11, 24, 35, 25, 35, 18, 1]

count30s = 0
for item in customerAges:
:
count30s = count30s + 1
print("Thirties:", count30s)

if 30 > item > 39

if 30 >= item >= 39

if 30 <= item <= 39

if 30 < item < 39

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:00, breella0
Howard is designing a chair swing ride. the swing ropes are 5 meters long, and in full swing they tilt in an angle of 29° outside chairs to be 2.75 m above the ground in full swing.
Answers: 1
image
Computers and Technology, 22.06.2019 19:20, bob4059
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given. b)the definition of max_cost should be removed since header files should not contain constants. c)the definition of book should be removed since header files should not contain class definitions. d)the body of the calculate_terms function should be added to the header file.
Answers: 1
image
Computers and Technology, 23.06.2019 04:31, hargunk329
Q13 what function does a security certificate perform? a. creates user accounts b. scrambles data c. identifies users d. creates password policies e. provides file access
Answers: 1
image
Computers and Technology, 24.06.2019 06:30, chloeholt123
For which utilities, if any, does the landlord pay?
Answers: 2
You know the right answer?
A restaurant recorded the ages of customers on two separate days. You are going to write a program t...

Questions in other subjects:

Konu
Social Studies, 23.03.2021 01:00
Konu
Arts, 23.03.2021 01:00