GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

When are the weekly Discussion Boards due?     

When are the weekly Discussion Boards due?     

Read Details

When are the weekly post-lecture assignments (quizzes) due?

When are the weekly post-lecture assignments (quizzes) due?

Read Details

Which of the following will access John’s math grade? studen…

Which of the following will access John’s math grade? student = {}student[“name”] = “John Smith”student[“grades”] = {“math”: 85, “chemistry”: 90, “biology”: 95}

Read Details

What will be printed after running the code below? result =…

What will be printed after running the code below? result = []for movie in movies:    result.extend(movie[“genres”])print(list(set(result)))

Read Details

What is the output of the following code?  def square(x):   …

What is the output of the following code?  def square(x):    return x**2def fun(nums, f):    return sum([f(n) for n in nums if n % 3 == 1])fun([1,2,3,4,5],square)

Read Details

What is the output of the following code:  game_prices = [3,…

What is the output of the following code:  game_prices = [3, 7, 10, 16, 20, 7, 1]cheap_game_prices = []for price in game_prices:    if  price < 10:       cheap_game_prices.append(price)print(set(cheap_game_prices))

Read Details

What does the following code evaluate to? movies[-2][“genres…

What does the following code evaluate to? movies[-2][“genres”][1]

Read Details

Given the following list of tuples: data = [(“apple”, 3), (“…

Given the following list of tuples: data = [(“apple”, 3), (“banana”, 2), (“cherry”, 5)] Which of the following options will correctly print: Fruit: banana Quantity: 2

Read Details

What will be printed and in what order?  numbers = [2, 5, 7,…

What will be printed and in what order?  numbers = [2, 5, 7, 11, 17] print(numbers[-1]) print(numbers[2:4])

Read Details

How would you access the score of James Miller? from collect…

How would you access the score of James Miller? from collections import namedtuplePlayer = namedtuple(“Player”, [“first_name”, “last_name”, “score”, “age”])players = [   Player(“John”, “Doe”, 20, 21),    Player(“Jim”, “Johnson”, 15, 18),    Player(“James”, “Miller”, 17, 20)]

Read Details

Posts pagination

Newer posts 1 … 34,901 34,902 34,903 34,904 34,905 … 92,825 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top