GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

What does list(map(lambda x: x * 2, [1, 2, 3])) return?

What does list(map(lambda x: x * 2, [1, 2, 3])) return?

Read Details

You have a list of dictionaries representing products:produc…

You have a list of dictionaries representing products:products = [{“name”: “Laptop”, “price”: 999}, {“name”: “Mouse”, “price”: 29}, {“name”: “Monitor”, “price”: 349}]Write Python code that: (1) uses a loop to calculate total inventory value, (2) uses a lambda with sorted() to sort products by price highest-first, and (3) uses a list comprehension to get only product names where price is above 100. Show expected output for each.

Read Details

Given d = {“x”: 10, “y”: 20}, what does list(d.keys()) retur…

Given d = {“x”: 10, “y”: 20}, what does list(d.keys()) return?

Read Details

What does np.random.normal(100, 15, 1000) generate?

What does np.random.normal(100, 15, 1000) generate?

Read Details

What values does range(2, 8) produce?

What values does range(2, 8) produce?

Read Details

When does a while loop stop executing?

When does a while loop stop executing?

Read Details

What is the output of sorted([5, 2, 8, 1])[0]?

What is the output of sorted([5, 2, 8, 1])[0]?

Read Details

La posición del puesto en el organigrama define:

La posición del puesto en el organigrama define:

Read Details

Which of the following is NOT a valid variable name?

Which of the following is NOT a valid variable name?

Read Details

What does f”Price: ${price:,.2f}” produce when price = 1234….

What does f”Price: ${price:,.2f}” produce when price = 1234.5?

Read Details

Posts pagination

Newer posts 1 … 99 100 101 102 103 … 77,768 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top