import _pickle
f = open("student.dat" , "rb")
stud_rec = _pickle.load(f)
found = 0
rno = int(input("Enter the roll no to be searched : "))
for R in stud_rec:
    if R[0] == rno:
        print("Successful Search" , R[0] , "Found!")
        found = 1
        break
if found == 0:
    print("Sorry, record not found")
    f.close()
79c21be1f2da392f6008f1ac633eb2168876c2cb
<mask token>

<mask token>
for R in stud_rec:
    if R[0] == rno:
        print('Successful Search', R[0], 'Found!')
        found = 1
        break
if found == 0:
    print('Sorry, record not found')
    f.close()

<mask token>
f = open('student.dat', 'rb')
stud_rec = _pickle.load(f)
found = 0
rno = int(input('Enter the roll no to be searched : '))
for R in stud_rec:
    if R[0] == rno:
        print('Successful Search', R[0], 'Found!')
        found = 1
        break
if found == 0:
    print('Sorry, record not found')
    f.close()

import _pickle
f = open('student.dat', 'rb')
stud_rec = _pickle.load(f)
found = 0
rno = int(input('Enter the roll no to be searched : '))
for R in stud_rec:
    if R[0] == rno:
        print('Successful Search', R[0], 'Found!')
        found = 1
        break
if found == 0:
    print('Sorry, record not found')
    f.close()

import _pickle
f = open("student.dat" , "rb")
stud_rec = _pickle.load(f)
found = 0
rno = int(input("Enter the roll no to be searched : "))
for R in stud_rec:
    if R[0] == rno:
        print("Successful Search" , R[0] , "Found!")
        found = 1
        break
if found == 0:
    print("Sorry, record not found")
    f.close()