GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

Congratulations! Thank you for completing the exam! You may…

Congratulations! Thank you for completing the exam! You may submit now. °˖✧◝(⁰▿⁰)◜✧˖°

Read Details

Write a function filter_nums(num_list, threshold, divisor) t…

Write a function filter_nums(num_list, threshold, divisor) that takes a list of integers (num_list) an integer (threshold) and an integer (divisor) and filters the num_list to include only the integers that satisfy the following condition:  A number n is included if n > threshold and n mod divisor = 0 (i.e. n is greater than the threshold and is divisible by divisor). (=^・ω・^=) The function should print (NOT RETURN) the following: Filtered number list Sum of removed numbers Count of numbers in the filtered numbers list Count of numbers in the removed numbers list Note: The divisor should have a default parameter of 2. Example:  Case 1: filter_nums([1, 5, 10, 3, 9, 15, 18, 2], 4, 3)  prints: Filtered Numbers: [9, 15, 18] Sum of removed numbers: 21 Count of filtered numbers: 3  Count of removed numbers: 5   Case 2: filter_nums([12, 15, 22, 27, 30, 33, 45, 5, 6], 10, 5) prints: Filtered Numbers: [15, 30, 45] Sum of removed numbers: 105 Count of filtered numbers: 3  Count of removed numbers: 6

Read Details

The RN is teaching new parents of a preterm infant about neo…

The RN is teaching new parents of a preterm infant about neonatal sepsis. Which of the following did the RN state best describes the clinical manifestations observed in neonatal sepsis?

Read Details

In caring for the infant whose mother drank alcohol during p…

In caring for the infant whose mother drank alcohol during pregnancy, nurses should be aware that

Read Details

A woman gave birth to an infant twelve hours ago. Where woul…

A woman gave birth to an infant twelve hours ago. Where would the nurse expect to locate this woman’s fundus?

Read Details

Write a function convert_to_dict(items) which takes in items…

Write a function convert_to_dict(items) which takes in items (a list of strings) and returns a dictionary. The list should be converted to a dictionary where each key is a unique item in the list. The value associated with a key should be a list containing each index where the string occurred in the original list. Example: convert_to_dict([“apple”, “apple”, “orange”, “apple”, “banana”, “chips”, “milk”, “milk”, “orange” ]) Returns: { “apple” : [0, 1, 3], “orange” : [2, 8], “banana” : [4], “chips” : [5], “milk” : [6, 7], }

Read Details

AFFIRMATIONS

AFFIRMATIONS

Read Details

What will be the output of the following code snippet? If th…

What will be the output of the following code snippet? If the output is an error, state “ERROR” in the prompt. numbers = [4, 2, 6, 12, 27, 17, 9] # ▼・ᴥ・▼result = 0for i in numbers:    if i % 2 == 0:        if i > 10:            result += 5        elif i 15:            result += 10        else:            result -= 2print(result)

Read Details

Write a function transform_list(nums) that takes a non-empty…

Write a function transform_list(nums) that takes a non-empty list of integers as its parameter. It should recursively loop through the numbers in nums, and create a new list based on the following rules: If the number is a multiple of 3, it is added to the list three times. If the number is odd, it is not included in the new list. Any other number is decreased by 2 and added to the list once. Example: transform_list([1,  2,  3,  4,  5,  6,  7,  8,  9]) returns [0,  3,  3,  3,  2,  6,  6,  6,  6,  9,  9,  9] Note: This problem must be solved using recursion. You cannot use ‘for’ or ‘while’ loops or use list comprehension.

Read Details

Convert the octal (base-8) value 234 to its decimal equivale…

Convert the octal (base-8) value 234 to its decimal equivalent.  ๑(◕‿◕)๑  

Read Details

Posts pagination

Newer posts 1 … 47,358 47,359 47,360 47,361 47,362 … 82,172 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top