Sir, I have recommended your channel to almost everyone i know who has CS as an optional, that's how much of an impact you have had on my CS Results I wish you all the best for your future endeavors and i hope your channel gets the recognition it deserves! Thank you so much sir :)
I have come to believe that a great teacher is a great artist and that there are as few as there are any other great artists. Teaching might even be the greatest of the arts since the medium is the human mind and spirit....
Sir when we enter data in csv file why it gave a row gap after writing in a row...plz tell thts y i cant search anything it will show range error when i write this code in computer plz tell?
I have a doubt Is that Sir said that if we use next (fobj)then first line will not be considered This mean that in fobj data is stored in forms of lines Am i right?
Sir search ke time import csv with open("details.csv","r") as obj: fobj = csv.reader(obj) next(fobj) for i in fobj: if(i[2]>=99): print(i) pata nahi q index out of range show kar raha hai mera.kuch solution bataye please
Sir pls out put wale questions bhi karvaiye.. ... For all chapters.(means which are in our syllabus and some extra for skill devloping) . Of sumitra arora python class 12...boards🙏🙏🙏
In this program,sir, you have done wrong that in place of i[2] ,it should be int(i[2]) then the program will be OK. import csv def create(): with open("detail.csv","w") as obj: fobj=csv.writer(obj) fobj.writerow(["roll","name","marks"]) while True: roll=int(input("enter the rollno:")) name=input("enter the name:") marks=int(input("enter the marks:")) record=([roll,name,marks]) fobj.writerow(record) choice=int(input("enter 1 for continue or 2 for exit:")) if choice==2: break def display(): with open("detail.csv","r") as obj: fobj=csv.reader(obj) for i in fobj: print(i,end="") def search(): with open("detail.csv","r") as obj: fobj=csv.reader(obj) next(fobj) for i in fobj: if i[2]>=99: print(i) create() display() search()
@@himanshukeshri7313 ok. Lekin us program me ye problem next(fobj) se bhi solve ho rhi thi , kyunki uske bad integer value hi thi to tumne wrong kyu kaha..
Dekho roll aur marks hmlog int me liye hai par jb wo jb file me jaaega to wo string me convert hojaaega isliye wo comparable nhi tha Aur comparable banaayega ke liye usko hmlog into me convert kiye hai
sir run nhi horh h pls help import csv def create(): with open("detail.csv","w") as obj: fobj=detail.writer(obj) fobj.writerow(["roll no.","name","total_marks"]) while True: roll=int(input("roll")) name=input("name") total=input("marks") record=[roll,name,total] fobj.writerow(record) ch=int(input("1-ENTER MORE 2-EXIT ENTER YOUR CHOICE ")) if ch==2: break
after run the programe its showing a error .. IndexError: list index out of range. import csv def creat(): with open("soum.csv","w") as obj: fobj = csv.writer(obj) fobj.writerow(["Roll","Name","Total Marks"]) while True: Roll = int(input("Enter the number ")) Name = input("Enter the name ") TotalMarks = int(input("Enter the Marks ")) record = ["Roll","Name","TotalMarks"] fobj.writerow(record) ch = int(input("Enter more Exit ")) if ch == 2: break def display(): with open ("details.csv","r") as obj: fobj = csv.reader(obj) for i in fobj: print(i) def search(): with open ("details.csv","r") as obj: fobj = csv.reader(obj) next(fobj) for i in fobj: if i[2]>=99: print(i)
@@codeitup yes sir it is giving error ,, i am pasting the code pls check. #CSV , COMMA SEPERATED VALUE import csv def create(): with open("details.csv","w") as obj: fobj = csv.writer(obj) fobj.writerow(['Roll','Name','Total Marks']) while True: roll = int(input("Enter Roll Number: ")) name = input("Enter Name: ") total = int(input("Enter total marks: ")) record = [roll,name,total] fobj.writerow(record) ch = int(input("1-> Enter more 2-> Exit Enter your choice!")) if ch == 2: breakdef display(): with open("details.csv","r") as obj: fobj = csv.reader(obj) for i in fobj: print(i) def search(): with open("details.csv","r") as obj: fobj = csv.reader(obj) next(fobj) #name and Total Marks are strings for i in fobj: if i[2] >= 490: print(i) After executing the code it is giving error as "list index out of range", i did two inputs with marks 500 each but still showing error.. pls reply sir.. you're god's man for non attending students like us..
Can I score good marks after watching your lectures and doing questions and not studying computer whole year coz of being of maths and suffering from new normal.
It's all depends upon you Amardeep. If you want to learn by yourself you may follow the playlist "Python Class 12" otherwise you may join the crash course batch if you 11th concept are ok till looping and lists.
import csv def create(): with open('details.csv','w') as obj: fobj=csv.writer(obj) fobj.writerow(['Roll','Name','Total_Marks']) while True: roll=int(input('Roll No: ')) name=input('Name: ') marks=int(input('Total marks: ')) record=[roll,name,marks] fobj.writerow(record) c=int(input('1->Enter More 2->Exit Enter Your Choice:')) if c==2: break; def display(): with open('details.csv','r') as obj: fobj=csv.reader(obj) for i in fobj: print(i) create() display() *Sir it is showing error:* AttributeError: partially initialized module 'csv' has no attribute 'writer' (most likely due to a circular import) what should I do sir?
It usually happens when IDLE detects some installation issues. Pls try restarting your system and then executing the program. Otherwise uninstall and install python.
@@codeitup sir tried again but I found that when I use it on my mobile, without saving it the program is running but the csv file is not shown, but after saving it it shows attribute error
Sir,
I have recommended your channel to almost everyone i know who has CS as an optional, that's how much of an impact you have had on my CS Results
I wish you all the best for your future endeavors and i hope your channel gets the recognition it deserves!
Thank you so much sir :)
Thanks a ton for your precious comment, keep learning 😊
Sir you are million times better than my school teacher✨✨👍👍👍👍👍👍
Thanks purvi ! Keep Learning !
Hundred percent ✅
Nooo...
He is trillion times better
Don't compare ur school teacher with other teachers
@@darkereyespot right👍👍👍👍
Content quality is better than many youtube channels!
Thanks 😊
my school teacher is an iit holder still we cant get what he teaches in class ... many thanks to you sir i scored 90+ in cs ❤
😊👍
@Srajan Rai every IITian doesn't end up in a good firm bruhh
@Srajan Rai and maybe his/her school is a good one
Amazing sir
I didn't understand cs with my schl teachers whole year , but your single video makes me feel that I leaned a lot ❤️❤️
Glad to hear that🙂
You are best💯👍, you are better than my school teacher👩🏫 ❤
😊
I have come to believe that a great teacher is a great artist and that there are as few as there are any other great artists. Teaching might even be the greatest of the arts since the medium is the human mind and spirit....
best cs teacher i have ever seen !!
😊
@@codeitup Ip ke students
bhi padh skte h
Sir , i have studied,last year from u and by just watch your lecture and make notes i have scored 98, thank you so much sir....
Thank you sir, you made me understand everything clearly which I never understood from past 6 months.🤗
🙂👍
You are the best teacher for computer.
THANKS SIR.....
Most welcome!
Great brother
Keep it up
This video helped me a lot a day before my Board Practical's 🙌
Thank you soo much
Glad it helped!
@@codeitup ip wale padh skte h
Thank you Anand sir ❤️🙏
Welcome Tenzin😊
Thankyou Sir ,for point to point and clear explanation.
Most welcome🙂
Thank you sir 🥰
For your superb explanation, it helped me a lot
Love your videos 🥰
Glad to hear that!
Superb lecture sir👍.....sir today I am comment my problem on another vedio..pls tell me the solution of this...🙋♂️🙂
A TEACHER LIKE YOU IS MOST IMP VERY NICE EXPLANATION SIR THANK YOUU SIRR
You are the best cs teacher in TH-cam ❤❤❤
😊🙏
Sir thank you so much for this amazing explanation
Thanks and welcome!
Now ,we are properly prepare for our board exams❤❤ thanks a lot.. sir.....❤😊😊😊.... Mahadev bless you❤sir...😊
Most welcome 😊
Best teaching sir....❤️nd beautiful smile uh have🥰🥀
Thanks Janhvi!
sir you are the best❤❤
😊🙏
thank you sir your vids helped in revision ❤
Sir this my first time in csv files programing so i want to ask that we have to create the file first in excel then in our program or something else
Sir thanks a lot from bottom of my heart 💕
😊
Sir CSV aur Binary file ke practical video bhi daal dijye please.
Sir You create very nice videos which are helpful for us.🤞👍👍
Thanks Akshit!
Thank you so much sir for your hard work and efforts..it was super easy to understand thanks to you!
Thanks & most welcome Manan!
Amazing👍🤩😍
Thanks !
I was so stressed about my practicals but now I am so confident thanks to you, sir😌
My pleasure😌
Thankyou sir fir great explanation.
My pleasure😌
Sir you are our real rocky bhai! 🤘 🤘 🤘
😊
Sir ji
Pheli bar samaj my aaya
And we appreciate your efforts sir
Intro Mast hain sir...
Thanks Aman!
Very nice sir ji 😍😍
Thanks Abhishek !
Sir when we enter data in csv file why it gave a row gap after writing in a row...plz tell thts y i cant search anything it will show range error when i write this code in computer plz tell?
Thank sir♥️❤️♥️❤️❤️❤️❤️
Most welcome !
Thankyou soo much sir .......👍🏻😊😊😊
Most welcome😊
thank you sir I am not even in class 12 I am a programer.
and sir csv.reader does not give list we have to make it.
hello sir, in context of 7:04 The syntax for 'with open' is : with open(,) as < file handler> : . you have missed the as in your video 😊
Baki teacher padte hai par app sir cs ko feel Kara dete hai 😍😁😃
Sir u help a lot I can't express I don't know anything thing but know I am capable to create program
Glad to help you Abhijeet!
AMAZING
🙂
Thankyou million times sir❤
I have a doubt
Is that
Sir said that if we use next (fobj)then first line will not be considered
This mean that in fobj data is stored in forms of lines
Am i right?
Yes ...In fobj the data is stored line by line in form of lists..
When you use next() it skips the next line/list
sir can we use for loop
Ab yahi se puuri cs karunga or dosto ko bhi refer karunga
😊👍
Sir search ke time
import csv
with open("details.csv","r") as obj:
fobj = csv.reader(obj)
next(fobj)
for i in fobj:
if(i[2]>=99):
print(i)
pata nahi q index out of range show kar raha hai mera.kuch solution bataye please
Mera bhi!!!
Bro tumne search function ka use nhi kiya shayd isliye
with open("details.csv","w",endline=' ') as obj:
Use This code while you are going to write on file. Then this error will be sorted out.
@@Bhardwaj_SirJi Thank you
Thankyou soooooo much sirrrrr🙏🙏🙏
About explaination say nothing 😁🤩🤩😘😘😘🥰🥰🥰🥰🥰🥰🥰🥰
Thanks Abdul 😊
Nice ❤️❤️
even after using
next(fobj) Python is giving following error
TypeError: '>' not supported between instances of 'str' and 'int'
Sare best sir best sir likh rahe
implement karke koi nhi dekh rha 😅
same
same
Sir pls out put wale questions bhi karvaiye.. ... For all chapters.(means which are in our syllabus and some extra for skill devloping) . Of sumitra arora python class 12...boards🙏🙏🙏
Definitely Ayush, Just let me complete the syllabus first.
Sir please next video on this chapter to finish it this is very helpfull for me in my exams
I will try my best Nandini !
great
Thanks Deepak!
Nice explanation sir ❤️❤️
Keep watching !!!!
In this program,sir, you have done wrong that in place of
i[2] ,it should be int(i[2]) then the program will be OK.
import csv
def create():
with open("detail.csv","w") as obj:
fobj=csv.writer(obj)
fobj.writerow(["roll","name","marks"])
while True:
roll=int(input("enter the rollno:"))
name=input("enter the name:")
marks=int(input("enter the marks:"))
record=([roll,name,marks])
fobj.writerow(record)
choice=int(input("enter 1 for continue or 2 for exit:"))
if choice==2:
break
def display():
with open("detail.csv","r") as obj:
fobj=csv.reader(obj)
for i in fobj:
print(i,end="")
def search():
with open("detail.csv","r") as obj:
fobj=csv.reader(obj)
next(fobj)
for i in fobj:
if i[2]>=99:
print(i)
create()
display()
search()
Why int(i[2])
@@aabc4941 because when i[2] is a string and we know that string value is not comparable.
So,we take it as int for further searching.
@@himanshukeshri7313 ok. Lekin us program me ye problem next(fobj) se bhi solve ho rhi thi , kyunki uske bad integer value hi thi to tumne wrong kyu kaha..
Dekho roll aur marks hmlog int me liye hai par jb wo jb file me jaaega to wo string me convert hojaaega isliye wo comparable nhi tha
Aur comparable banaayega ke liye usko hmlog into me convert kiye hai
@@himanshukeshri7313 ok. Thanks btane ke liye
Thanks a lot sir
Most welcome Kartik!
Underrated 🤩
धन्यवाद
😊
thank you sir exams over❤️❤️
Most welcome!
def search():
i=0
with open("details.csv","r")as obj:
fobj=csv.reader(obj)
next(fobj)
for i in fobj:
if i[2]>60:
print(i)
sir error kyu show kar raha hai .plz suggest
Sir reply please. U answered to everyone but did not tell the error
@@dharamdeepschoolint(i[2]) hoga
Love you sir you are amazing 🤩🤩🤩
Thanks a lot Rinki!
sir jab mene linear search se pehle wala code dala to wo attribute error batara hai.. plss kuch bataiye..
Sir, where is *Relative & Absolute Path* ?
Pls upload it. I'm not getting it.
sir, kya read or search me b "import csv" likhna hoga?
Yes Vikas it's necessary.
35k🥳🥳🥳🥳
😊
@code it up sir def create () function hai toh call nahi kiye usko
Might be missed it.
@@codeitup ok sir
Hiii bro
Sir book me text file k type me tsv,csv,regular file diya h but aap isse Alag Alag type me bta rhe h..doubt clear kriye sir
sir run nhi horh h pls help
import csv
def create():
with open("detail.csv","w") as obj:
fobj=detail.writer(obj)
fobj.writerow(["roll no.","name","total_marks"])
while True:
roll=int(input("roll"))
name=input("name")
total=input("marks")
record=[roll,name,total]
fobj.writerow(record)
ch=int(input("1-ENTER MORE
2-EXIT
ENTER YOUR CHOICE "))
if ch==2:
break
after run the programe its showing a error .. IndexError: list index out of range.
import csv
def creat():
with open("soum.csv","w") as obj:
fobj = csv.writer(obj)
fobj.writerow(["Roll","Name","Total Marks"])
while True:
Roll = int(input("Enter the number "))
Name = input("Enter the name ")
TotalMarks = int(input("Enter the Marks "))
record = ["Roll","Name","TotalMarks"]
fobj.writerow(record)
ch = int(input("Enter more
Exit "))
if ch == 2:
break
def display():
with open ("details.csv","r") as obj:
fobj = csv.reader(obj)
for i in fobj:
print(i)
def search():
with open ("details.csv","r") as obj:
fobj = csv.reader(obj)
next(fobj)
for i in fobj:
if i[2]>=99:
print(i)
creat()
display()
search()
bhai isse replace krdo hojayega......with open("question.csv", "w", newline='') as obj:
also replace i[2]>=99 to int(i[2])>=
@@shortscreator9977 can you pls send the code once
nyc explane sir jii
Thanks for liking Ranjan !
End mein sir please bta dijiye
Sir 12:11 m int kyu hoga i think float hoga may be...
both are correct.float and int depend on which type of data u want to enter
Starting m konsa avertisement aaya tha tum logon ki video m
Thank you sir
Welcome Payal !
Text file is human readable and binary file is human unreadable right ok !
Then ,CSV file readable or unreadable
27:22
Sir next(obj) is still giving TypEerror
Paste your code here please Taha..
@@codeitup yes sir it is giving error ,, i am pasting the code pls check.
#CSV , COMMA SEPERATED VALUE
import csv
def create():
with open("details.csv","w") as obj:
fobj = csv.writer(obj)
fobj.writerow(['Roll','Name','Total Marks'])
while True:
roll = int(input("Enter Roll Number: "))
name = input("Enter Name: ")
total = int(input("Enter total marks: "))
record = [roll,name,total]
fobj.writerow(record)
ch = int(input("1-> Enter more
2-> Exit
Enter your choice!"))
if ch == 2:
breakdef display():
with open("details.csv","r") as obj:
fobj = csv.reader(obj)
for i in fobj:
print(i)
def search():
with open("details.csv","r") as obj:
fobj = csv.reader(obj)
next(fobj) #name and Total Marks are strings
for i in fobj:
if i[2] >= 490:
print(i)
After executing the code it is giving error as "list index out of range", i did two inputs with marks 500 each but still showing error.. pls reply sir.. you're god's man for non attending students like us..
@@codeitup same problem with me also sir
@@codeitup same error with me also....
It's showing "list index out of range"
Sir but why use as obj program
Sir apke oop pe video he kya python ke
Nice sir jee
Thanks Anup !
Thank you sir... Nice explanation
You're most welcome!
Aap kitne Pyar Se samjhate Ho Lekin Hamare school ke teacher thoda Galti hone per Hathon Se dhulai Karte Hain😢😢😢
watching
Okk
Sir CSV letter capital ya small
Small
Crystal clear 💯
Thanks Prateek !
Sir note ka link h kya
Sir file ko write mode me kholne par to data overwrite ho jayega. How to resolve this
Open in append mode.
Your new subscriber
Thanks for subbing!!!
Can I score good marks after watching your lectures and doing questions and not studying computer whole year coz of being of maths and suffering from new normal.
It's all depends upon you Amardeep. If you want to learn by yourself you may follow the playlist "Python Class 12" otherwise you may join the crash course batch if you 11th concept are ok till looping and lists.
Whats the fee
Kitne aaye bhai CS me???
very good all video sir Thank u dil se
Most welcome dear😊
Sir mere python me CSV use nhi ho pa Raha h
In 4th line of code you use csv.write in used not csv.writer. why?
👍
😊
2023 me konsa questions ayega today hamako hints dedo sir otherwise I will fail sir
i[2]=='99' : hoga then next ki bhi xroorat nhai
import csv
def create():
with open('details.csv','w') as obj:
fobj=csv.writer(obj)
fobj.writerow(['Roll','Name','Total_Marks'])
while True:
roll=int(input('Roll No: '))
name=input('Name: ')
marks=int(input('Total marks: '))
record=[roll,name,marks]
fobj.writerow(record)
c=int(input('1->Enter More
2->Exit
Enter Your Choice:'))
if c==2:
break;
def display():
with open('details.csv','r') as obj:
fobj=csv.reader(obj)
for i in fobj:
print(i)
create()
display()
*Sir it is showing error:*
AttributeError: partially initialized module 'csv' has no attribute 'writer' (most likely due to a circular import)
what should I do sir?
It usually happens when IDLE detects some installation issues. Pls try restarting your system and then executing the program. Otherwise uninstall and install python.
@@codeitup ok sir, thanks
@@codeitup sir tried again but I found that when I use it on my mobile, without saving it the program is running but the csv file is not shown, but after saving it it shows attribute error
Sir, why an object was created for opening the csv file?
sir search code error show kar raha hai