import pickle def write(): f=open("binary.dat",'wb') M=[] ch='y' while ch=='y': r=int(input("enter your roll no. right here:")) n=input("Enter your name in english:") m=float(input("Enter your marks:")) d=[r,n,m] M.append(d) ch=input("press \'y\' to add more data ") pickle.dump(M,f) f.close() def read(): f=open("binary.dat",'rb') try: while True: d=pickle.load(f) for i in d: print("roll no:",i[0]) print("name:",i[1]) print("marks:",i[2]) except EOFError: f.close() def search(): f=open("binary.dat",'rb') r=int(input("Enter the roll no. you are looking for:")) try: while True: d=pickle.load(f) for i in d: if i[0]==r: print("data found! :-",i) else: print("data not found :(") except EOFError: f.close() def update(): f=open("binary.dat",'rb+') r=int(input("Enter the roll no. you are looking for:")) try: while True: d=pickle.load(f) Found=1 for i in d: if i[0]==r: i[1]=input("Enter the new name:") print("update is done!") Found=0 if Found==1: print("Data not found") else: f.seek(0) pickle.dump(d,f) f.close() ch='y' while ch=='y': m=int(input("press 1: store/add data 2:see what\'s inside this file 3:search for some data 4:update the name in the registered data 5:to exit YOUR CHOICE:-")) if m==1: write() elif m==2: read() elif m==3: search() elif m==4: update() ch=input("press \'y\' to continue adding data:")
bhai indexing ke liye string me list me tuple me same h start krega to har character ka indexing 0,1,2,3,.... AISE HOGA but agar terko piche se indexing krna h to -1 bas slicing ke liye terko kaha se kaha tak ka data chahiye wo indexing ki help se hoga
45:52 ma'am i dont know how your interpreter is running that programme but my interpreter is showing an EOF error about that and not only here, whenever you use "pickle.load()" function
59:00
lecture starts at 4:02
Maam Komal apki koi best wali frnd hogi na..... Tbhi aap unka hii naam likhte hoo...😂😂😂😂
fr😂
Thanku mam
43:40
import pickle
def write():
f=open("binary.dat",'wb')
M=[]
ch='y'
while ch=='y':
r=int(input("enter your roll no. right here:"))
n=input("Enter your name in english:")
m=float(input("Enter your marks:"))
d=[r,n,m]
M.append(d)
ch=input("press \'y\' to add more data
")
pickle.dump(M,f)
f.close()
def read():
f=open("binary.dat",'rb')
try:
while True:
d=pickle.load(f)
for i in d:
print("roll no:",i[0])
print("name:",i[1])
print("marks:",i[2])
except EOFError:
f.close()
def search():
f=open("binary.dat",'rb')
r=int(input("Enter the roll no. you are looking for:"))
try:
while True:
d=pickle.load(f)
for i in d:
if i[0]==r:
print("data found!
:-",i)
else:
print("data not found :(")
except EOFError:
f.close()
def update():
f=open("binary.dat",'rb+')
r=int(input("Enter the roll no. you are looking for:"))
try:
while True:
d=pickle.load(f)
Found=1
for i in d:
if i[0]==r:
i[1]=input("Enter the new name:")
print("update is done!")
Found=0
if Found==1:
print("Data not found")
else:
f.seek(0)
pickle.dump(d,f)
f.close()
ch='y'
while ch=='y':
m=int(input("press 1: store/add data
2:see what\'s inside this file
3:search for some data
4:update the name in the registered data
5:to exit
YOUR CHOICE:-"))
if m==1:
write()
elif m==2:
read()
elif m==3:
search()
elif m==4:
update()
ch=input("press \'y\' to continue adding data:")
mam merko meri glti nhi mil rhi
dw
1:11:23 me found use kiye bina kar skte h ?
if else use krke?
Please reply mam🙏🙏🙏🙏
yes kar sakta hai
nahi phir wo multiple time output dedega
Best teacher of CS on youtube
❤❤❤❤
Best teacher for CS. Thank you Mam❤
Mam binary file topic thoda complex ho gya kaise kare isme aap ne acche se phadaya but samaj nhi aa rha acche se dekha toh bhi😢
Please help
Watch nested list concept one shot from this channel or either from codeitup channel your concept would get cleared and you will understand this
Thanks a lot ma'am ......following you since 12th starting 🙏❤️💗.....you are saviour
Thanks for your efforts ma'am ❤🥹🫡🫡
"Yeah koi bahot badi top nhi h" ma'am favourite dialogue 😂😂😂😂😂
Mam i have started from 31st march
same best of luck 🥸
Literally what a beautiful lecture mam ❤, day by day respect for you in my heart goes 📈📈 thanks a lot mam
Thankyou maam, we all are very lucky to have such a great teacher. Your live Series is really very very helpfull for all of us.
done
Pass har koi ho jayga 😊❤( mujhe indexing nhi ata)
bhai indexing ke liye string me list me tuple me same h start krega to har character ka indexing 0,1,2,3,.... AISE HOGA but agar terko piche se indexing krna h to -1 bas
slicing ke liye terko kaha se kaha tak ka data chahiye wo indexing ki help se hoga
Thankyou mam ❤
thank u mam
Abhi se syllabus start karke pss toh ho jaaungi na guyss 😢😢
Prt
SQL
Network King ke ma'am ke one shot dekh lo broh ho jaogi
@@pw_neetaspirantokyy subhee tk ho jaaega aaj raat bhr pdkee 😔
us bro us
Maam be like whats ur name,,,KOMAL 🎉🎉woahhh 😂😂
Mam ye lecture bhot hard laga hai samjh nahi aa raha hai
oyee kake
Pdf kha hai liye class ki
Telegram pe to nhi hai
Bhai my SQL to hua hi nhi is Chanel me
@@shivangmishra4259 kitna syllabus ho gya?
@@manalishakakati26 sirf my SQL baki hai pr program based questions me dikkat hoti hai
@@manalishakakati26 tumhara kitna syllabus ho gaya
45:52 ma'am i dont know how your interpreter is running that programme but my interpreter is showing an EOF error about that
and not only here, whenever you use "pickle.load()" function
❤❤❤