"P_record.csv" contains the records of patients in a hospital. Each record of the file contains the following data:["Gunjan", "Jaundice", 4, 15000]read_data() which reads all the data from the file and displays the details of all the 'Cancer' patients.count_rec() which counts and returns the number of records in the file.
def read_data():
try:
import csv
with open("P_record.csv", "r") as f:
reader = csv.reader(f)
for row in reader:
if row[1].lower() == "cancer":
print(row)
except FileNotFoundError:
print("File not found.")
Explanation:
def count_rec():
count = 0
try:
import csv
with open("P_record.csv", "r") as f:
reader = csv.reader(f)
for row in reader:
count += 1
return count
except FileNotFoundError:
print("File not found.")
return 0
Explanation:fruits = ['apple','banana','cherry'] print(fruits[0])
def sayHello():
print("Hello World")
sayHello()
sayHello()
A racing track is built around an elliptical ground whose equation is given by \[ 9x^2 + 16y^2 = 144 \] The width of the track is \(3\) m as shown. Based on the given information answer the following: 
(i) Express \(y\) as a function of \(x\) from the given equation of ellipse.
(ii) Integrate the function obtained in (i) with respect to \(x\).
(iii)(a) Find the area of the region enclosed within the elliptical ground excluding the track using integration.
OR
(iii)(b) Write the coordinates of the points \(P\) and \(Q\) where the outer edge of the track cuts \(x\)-axis and \(y\)-axis in first quadrant and find the area of triangle formed by points \(P,O,Q\).