GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

What is the output?reviews = [4, 5, 2, 5, 3] positive = [] f…

What is the output?reviews = [4, 5, 2, 5, 3] positive = [] for rating in reviews: if rating >= 4: positive.append(rating) average = sum(positive) / len(positive) print(average)

Read Details

What is the output?orders = [ {“customer”: “A”, “price”: “40…

What is the output?orders = [ {“customer”: “A”, “price”: “40”, “quantity”: “3”}, {“customer”: “B”, “price”: “25”, “quantity”: “2”}, {“customer”: “C”, “price”: “60”, “quantity”: “2”} ] revenues = [] for order in orders: price = int(order[“price”]) quantity = int(order[“quantity”]) revenues.append(price * quantity) print(revenues) print(sum(revenues))

Read Details

What is the output?customer = “Maya|Gold|Boston” details = c…

What is the output?customer = “Maya|Gold|Boston” details = customer.split(“|”) print(details[-1])

Read Details

What is the output?ratings = [4.2, 3.8, 4.9] best_first = so…

What is the output?ratings = [4.2, 3.8, 4.9] best_first = sorted(ratings, reverse=True) ratings.append(4.5) print(ratings) print(best_first)

Read Details

What is the output?status = “pending” new_status = status.re…

What is the output?status = “pending” new_status = status.replace(“pending”, “approved”) print(status) print(new_status)

Read Details

What is the output?employees = [ {“name”: “Ana”, “department…

What is the output?employees = [ {“name”: “Ana”, “department”: “Sales”, “salary”: “72000”}, {“name”: “Omar”, “department”: “IT”, “salary”: “88000”}, {“name”: “Leo”, “department”: “Sales”, “salary”: “95000”}, {“name”: “Mia”, “department”: “Sales”, “salary”: “68000”} ] selected_salaries = [] for employee in employees: salary = int(employee[“salary”]) if employee[“department”] == “Sales” and salary >= 70000: selected_salaries.append(salary) print(len(selected_salaries)) print(sum(selected_salaries))

Read Details

What is the output?order = “Keyboard,75,4” parts = order.spl…

What is the output?order = “Keyboard,75,4” parts = order.split(“,”) unit_price = int(parts[1]) quantity = int(parts[2]) print(unit_price * quantity)

Read Details

What is the output?visitors = “240” days = 3 average = int(v…

What is the output?visitors = “240” days = 3 average = int(visitors) / days print(average)

Read Details

Using the lab’s approximate 95% confidence-interval formula,…

Using the lab’s approximate 95% confidence-interval formula, the high-starch group has a mean of about 7.12 copies with an interval of about 7.12 ± 1.17, while the low-starch group has a mean of about 5.48 with an interval of about 5.48 ± 0.87. What does a confidence interval around a sample mean describe?

Read Details

A student concludes: “Eating starch causes a person’s cells…

A student concludes: “Eating starch causes a person’s cells to create additional copies of AMY1.” What is the main problem with this conclusion?

Read Details

Posts pagination

Newer posts 1 … 16 17 18 19 20 … 97,965 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top