CODEITUP
CS Class 12 | Chapter 06 | CSV File
Get the CBSE CS PYTHON Class 12 Enroll in Class 12 Explore
[Link] book by Anand Sir CS/CUET CS Live Batches C/C++/Java Courses
CODEITUP
CS Class 12 | Chapter 06 | CSV File
Get the CBSE CS PYTHON Class 12 Enroll in Class 12 Explore
[Link] book by Anand Sir CS/CUET CS Live Batches C/C++/Java Courses
CODEITUP
CS Class 12 | Chapter 06 | CSV File
Get the CBSE CS PYTHON Class 12 Enroll in Class 12 Explore
[Link] book by Anand Sir CS/CUET CS Live Batches C/C++/Java Courses
CODEITUP
CS Class 12 | Chapter 06 | CSV File
Get the CBSE CS PYTHON Class 12 Enroll in Class 12 Explore
[Link] book by Anand Sir CS/CUET CS Live Batches C/C++/Java Courses
CODEITUP
CS Class 12 | Chapter 06 | CSV File
Get the CBSE CS PYTHON Class 12 Enroll in Class 12 Explore
[Link] book by Anand Sir CS/CUET CS Live Batches C/C++/Java Courses
CODEITUP
CS Class 12 | Chapter 06 | CSV File
Get the CBSE CS PYTHON Class 12 Enroll in Class 12 Explore
[Link] book by Anand Sir CS/CUET CS Live Batches C/C++/Java Courses
CODEITUP
CS Class 12 | Chapter 06 | CSV File
import csv
def write():
with open("[Link]","w",newline='')as fobj:
f=[Link](fobj)
[Link](['Roll','Name','Marks'])
while True:
roll=int(input("Enter Roll umber:"))
name=input("Enter Name:")
marks=int(input("Enter Marks:"))
data=[roll,[Link](),marks]
[Link](data)
choice=int(input("1->Enter More\n2-
>Exit\nEnter your Chocie:"))
if choice==2:
break
print("File Created Successfully...")
Get the CBSE CS PYTHON Class 12 Enroll in Class 12 Explore
[Link] book by Anand Sir CS/CUET CS Live Batches C/C++/Java Courses
CODEITUP
CS Class 12 | Chapter 06 | CSV File
def read():
with open("[Link]","r")as fobj:
f=[Link](fobj)
for i in f:
print(i)
Get the CBSE CS PYTHON Class 12 Enroll in Class 12 Explore
[Link] book by Anand Sir CS/CUET CS Live Batches C/C++/Java Courses
CODEITUP
CS Class 12 | Chapter 06 | CSV File
def search():
with open("[Link]","r")as fobj:
f=[Link](fobj)
roll=int(input("Enter Roll Number to Find:"))
flag=0
next(f)
for i in f:
if int(i[0])==roll:
flag=1
print(i)
break
if flag==0:
print("Roll Number Not Found")
Get the CBSE CS PYTHON Class 12 Enroll in Class 12 Explore
[Link] book by Anand Sir CS/CUET CS Live Batches C/C++/Java Courses
CODEITUP
CS Class 12 | Chapter 06 | CSV File
def max(): def min():
with open("[Link]","r")as fobj: with open("[Link]","r")as fobj:
f=[Link](fobj) f=[Link](fobj)
maxm=-1 minm=101
next(f) next(f)
for i in f: for i in f:
if int(i[2])>maxm: if int(i[2])<minm:
maxm=int(i[2]) minm=int(i[2])
z=i z=i
print("Student with Max Marks=",z) print("Student with Min
Marks=",z)
Get the CBSE CS PYTHON Class 12 Enroll in Class 12 Explore
[Link] book by Anand Sir CS/CUET CS Live Batches C/C++/Java Courses