The following count_consonants(string) function attempts to…

The following count_consonants(string) function attempts to count the number of consonants in a given string. The input string always consists of alphabetic characters (a-zA-Z) and no whitespace.  〔´∇`〕 For example: test_string = “MooDeng”  print(count_consonants(test_string)) # Should print 4 However, this function currently contains multiple logic and syntax errors. Identify and correct the errors in the code snippet so the function works as intended. You cannot change entire chunks of code nor rewrite it again. Mention the line number where the error is, what the error is, and the correction. 1. def count_consonants(string)2.   vowels = ‘iouIOU’3.   if len(string) == 0:4.     return 25.   if string[1] not in vowels:6.     return 1 + count_consonants(vowels[0:])7.   return count_consonants(string[1:])

Providing care for the neonate born to a mother who abuses s…

Providing care for the neonate born to a mother who abuses substances can present a challenge for the health care team. Nursing care for this infant requires a multisystem approach. The initial steps in the provision of this care would be neonatal abstinence syndrome scoring, [answer1] and [answer2]  

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], }