Winter Holidays Home Work Class XI CS
Winter Holidays Home Work Class XI CS
Write a program that takes any two lists L and M Select the correct output of the code:
of the same size and adds their elements a = "Python! is amazing!"
together to form a new list N whose elements are a = a.split('!')
sums of the corresponding elements in L and M. b = a[0] + "." + a[1] + "." + a[2]
For print (b)
instance, if L = [3, 1, 4] and M = [1, 5, 9], then N (a) Python!. is amazing!. (b) Python. is amazing.
should equal [4,6,13]. (c) Python. ! is amazing.! (d) will show error
Design a Python program that employs a Given a dictionary of student grades, write a function to
dictionary to store the details of patients in a calculate the average grade for each
hospital, including their names, ages, and medical Student and return the result in a new dictionary.
records. The program should find patients by a Input: {"John": [80, 70, 90], "Jane": [90, 80, 70]}
Output: {"John": 80.0, "Jane": 80.0}
specific age range.