Binary and CSV Files in Python | Class 12 Computer Science | Lecture 13

preview_player
Показать описание
Notes and Important Links of this lecture 👇
Link to the notes of this Lecture :
Рекомендации по теме
Комментарии
Автор

3:20 - CSV FILES
4:00 - Reading a CSV FILE
4:45 - writing a csv file
5:45 - Practice time
9:50 -Q3 imp

harshitmadaan
Автор

sir mera parso board hai, pure saal dhang se nahi padha but aaj aapki videos dekh kr maza aagaya pura syllabus complete krlia and jo coding merko 10th se smjh ni aaya uski aaj clarity hogyi thank you :)))

rhythmgoel-ucvg
Автор

No one
Literally no one:
Harsh bhaiya - Parle-G ka achaar!!!

i_ashhhhh
Автор

Thanku bhaiyaas and didis for changing the future of India.... guiding us towards a super power india (jbhi hoga)

shriestkumar
Автор

7:37 my method

a=open('data.txt', 'r')
b=a.readlines()
print(b[-1])
a.close()

Kishan_Narrator
Автор

sir please upload the next lecture because my preboard will be start
15 January

anchalgupta
Автор

3:54 WHO ELSE NOTICED NOBITA=0 MARKS 😂😂😂

shreymishra
Автор

in the question where we have to write a code to print last line of file :

you can use this code also:

f=open("1.txt", "r")
x=f.readlines()
print(x[-1])

xperthighlight
Автор

You don’t have to put delimiter keyword because the default delimiter is comma itself. Also, you don’t need a loop of .writerow(), you can just pass the nested list in .writerows()

jaikapoor
Автор

This brave showing his ads like: wow! You really let this add in?😂🤦🏻.... Bro u won't be able to advertise if it wasn't for this ad 🤣

gursimarsingh
Автор

to print last line:
fp=open('blablabla.txt', 'r')
lines=fp.read().splitlines()
lastline=lines[-1]
print(lastline)

ishankrajpal
Автор

7:32 code is not valid gives error.
Corrected code-
file=open('data.txt', 'r')
line=file.readlines()
last=line[-1]
print(last)

11:21 also gives error.
Corrected code-
def displayword():
a=open('Answer.txt', 'r')
b=a.read()
c=b.split()
for i in range(len(c)):
if len(c[i])>4:
print(c[i])
else:
continue

Or you could just assign and empty variable first like
a=' '
While a:
Like that but for loop is more easy. Atleast for me.

rehanmomin
Автор

Who is wathching this right now for tomorrow's exam😅😂

SumanBaghel-ukvk
Автор

BHAIYA I KNOW YOU TRYING TO CREATE A BULK BUT PLEASE UPLOAD ALL OF PYTHON ASAP BECAUSE WE HAVE BOARDS, PRACTICALS, AS WELL AS MAINS RIGHT INFRONT OF US, DON'T HAVE MUCH TIME LEFT HOPE U

rajat
Автор

to display words whose length less than 4 :
fp=open('blablabla'.txt', 'r')
words=fp.read().split()
for i in words:
if len(i)<4:
print(i)
fp.close()

ishankrajpal
Автор

Thank you bhaiya .... It's helping a lot.

rohanranjanprasad
Автор

Aman bhaiya, , please bata do na ki aap Physics ki remaining chapter ki notes kab denge 📚📚please please reply🙏🙏 agar kisi ko pata hai please reply 🙏🙏🙏

hrishikeshbharadwaj
Автор

In the last program, the interpreter would give an error: "local variable 'a' referenced before assignment"

To avoid this, before while loop, at line number 3, you'll have add one more line of code as follows:
a =' '

and you're all good. :)

mayank
Автор

Physics ke notes updload kardo pls optics and modern

harshkeswani
Автор

3:51 Nobita supremacy!! love the way you teach sir

HeyyyHardik
welcome to shbcf.ru