READING & WRITING DATA INTO FILES - PYTHON PROGRAMMING

  Рет қаралды 90,717

Sundeep Saradhi Kanthety

Sundeep Saradhi Kanthety

Күн бұрын

Пікірлер: 88
@ShivaKumar-ud8pt
@ShivaKumar-ud8pt 6 жыл бұрын
Great Sir, continue teaching it helps thousands of students!
@rajbir_singh0517
@rajbir_singh0517 2 жыл бұрын
Sir, your teaching is really awesome, you are real teacher who understand how to make things easy and deliver to student. I have seen multiple videos about sys.args but they were not explaining as you did. Thank you sir
@harshkumarmishra1479
@harshkumarmishra1479 4 жыл бұрын
Your handwriting is clear which helps to understand the syntax of the program easily.
@Yash-gj2xy
@Yash-gj2xy 6 жыл бұрын
Really thank you sir for ur wonderful programming videos!
@rakeshkumaryadav1117
@rakeshkumaryadav1117 2 жыл бұрын
Wonderful, just ignore all other channels and see this channel you will never confused
@VamsikrishnaMathi
@VamsikrishnaMathi Жыл бұрын
Super sir nice explanation 👍👍
@stephyn.s2175
@stephyn.s2175 3 жыл бұрын
Thank you sir.... very helpful part 👍👍👍👍🙏🙏🙏
@vikashgola287
@vikashgola287 5 жыл бұрын
great sir,your explanations are really good.
@nareshabhira8728
@nareshabhira8728 3 ай бұрын
Thanks
@targetmission8234
@targetmission8234 6 жыл бұрын
thank you! You're an excellent teacher. keep it up
@EgyptofranceSAE
@EgyptofranceSAE 4 жыл бұрын
you are amazing , i loved indians because of you
@414theConstant
@414theConstant 2 жыл бұрын
thank you sir, you helped me finding a very big mistake .
@xavierarulraj1781
@xavierarulraj1781 4 жыл бұрын
Super sir easily understood I am a begginer
@thatikondakrishnachaitanya1
@thatikondakrishnachaitanya1 Жыл бұрын
Nice explanation sir I am understand everything
@jhansinalla5561
@jhansinalla5561 3 жыл бұрын
Super explanation sir
@venkatsai603
@venkatsai603 5 жыл бұрын
sir please make on oops concepts also in python and mdules also
@bathalamallikarjuna2316
@bathalamallikarjuna2316 3 жыл бұрын
🥳🥳🥳 superb
@TDNoteBook
@TDNoteBook 2 жыл бұрын
Thank you very much sir to best way to explain.
@sanjeebnayak9917
@sanjeebnayak9917 10 ай бұрын
so nice explanation sir.....
@jojven7514
@jojven7514 2 жыл бұрын
thank you sir for making this masterpiece.
@westfield90
@westfield90 5 жыл бұрын
Best teacher
@nitinsharma9307
@nitinsharma9307 2 жыл бұрын
Really thankful sir ..
@pallimohan7712
@pallimohan7712 2 жыл бұрын
Super sir
@akashshetty674
@akashshetty674 2 жыл бұрын
U r d best
@tholuchurinaveen1090
@tholuchurinaveen1090 4 жыл бұрын
Great!! Keep going on sir
@kemaketseforkssebitiela3089
@kemaketseforkssebitiela3089 11 күн бұрын
Absolutely fantastic but you didn't demonstrate in python😢
@syabongajele6431
@syabongajele6431 3 жыл бұрын
thank you Sir for teaching me to create a FILE .
@bhuvanmanikar3231
@bhuvanmanikar3231 4 жыл бұрын
Sir very nice explanation
@the.renish.salakhana
@the.renish.salakhana 2 жыл бұрын
Great Sir , but there are others operations like Truncating , Renaming , Removing a files are missing that all operations has module called "OS" module we need to import
@shreyaansjain.181
@shreyaansjain.181 2 жыл бұрын
excellent teaching
@naveenhagaragi8460
@naveenhagaragi8460 4 жыл бұрын
At 6:40 & 14:35, i wrote below code to write data in different lines, when i print it. it was written in a single line. i opened the file from CWD and there also its written in a single line. >>> f2=open("xyz.txt","w") >>> lines=["Hello","Welcome to","Python Programming"] >>> f2.writelines(lines) >>> f2.close() >>> f2=open("xyz.txt","r") >>> f2.readlines() and output is : ['HelloWelcome toPython Programming'] Why it is not writing data in multiple lines as i have used writelines() function.???
@naveenhagaragi8460
@naveenhagaragi8460 4 жыл бұрын
got it, i need to include either at the beginning or at the end of each element of list. >>>lines=["Hello ","Welcome to ","Python Programming "]
@guntadivya3505
@guntadivya3505 4 жыл бұрын
super sir.
@josemaroatanha8140
@josemaroatanha8140 3 жыл бұрын
very good, thanks a lot sir.
@westfield90
@westfield90 5 жыл бұрын
Do you need to specify a new line character when writing to a file ?
@rumagoswami3272
@rumagoswami3272 5 жыл бұрын
superb sir
@sundeepsaradhi
@sundeepsaradhi 5 жыл бұрын
hi ruma Thanks for your support towards our channel.Share our channel with your friends and keep following our channel.
@TuziFix
@TuziFix Жыл бұрын
Thank you sir. This is understandable
@vastuhumara6099
@vastuhumara6099 5 жыл бұрын
Awesome video thanks a lot
@awaadalhamad638
@awaadalhamad638 2 жыл бұрын
f1.read(5) did he started counting from zero or one?
@pannagabm2100
@pannagabm2100 10 ай бұрын
Thank you sir.. ❤🙏
@JayPatel-ou2ud
@JayPatel-ou2ud 2 жыл бұрын
nice sir
@038anjalidevi2
@038anjalidevi2 Жыл бұрын
For suppose I don't want to close the file but I want cursor to be changed to a particular position. How is this made possible?
@tarungarg2695
@tarungarg2695 5 жыл бұрын
what is the difference between .read() and .readlines() ? as you mention both will read complete file.
@sumanpalisetty6096
@sumanpalisetty6096 4 жыл бұрын
both are same until you pass an argument which is essentially the number of characters. if you pass read() or readlines() both are same if you have read(5), it will read only first 5 characters of a file. for readlines() there is no argument needed as it gives you complete file
@naveenhagaragi8460
@naveenhagaragi8460 4 жыл бұрын
If there are multiple lines in a file, ex: f1=open("file1.txt","w") lines=["Welcome to ","Python Programming "] f1.write(lines) read() will return each line data as it is in the file Ex: Welcome to python Programming but readlines() will return each line as an element of list. Ex: ["Welcome to ","Python Programming "]
@anishatadkod1778
@anishatadkod1778 Жыл бұрын
You are so awesome sir ! Thank you 😊
@rafimd407
@rafimd407 3 жыл бұрын
Using w+ we can open file in both write and read mode, then why to create new file pointer in read mode again?
@iamsilly8714
@iamsilly8714 5 жыл бұрын
Please complete 12th class python asap sir. I think it will help many students.
@manuelvaal1257
@manuelvaal1257 2 жыл бұрын
legend this guy
@rakshadevadurg1217
@rakshadevadurg1217 3 жыл бұрын
What is use of writing & reading file?
@vidyashree8913
@vidyashree8913 2 жыл бұрын
Thanks 🙏
@carpediemscrate1923
@carpediemscrate1923 4 жыл бұрын
Thank you sir.. need Pickle dump and load method..
@StemmEducation
@StemmEducation 3 жыл бұрын
Thank you Sir
@pointofview6161
@pointofview6161 2 жыл бұрын
Sir can u make video on CRUD operations in file handlings
@prabhakarasam9868
@prabhakarasam9868 3 жыл бұрын
f1=open("prabha.txt","r") f1.read(-1) It displays total data in the file sir???
@shivasmart967
@shivasmart967 2 жыл бұрын
TQ sir
@manasakadapalla2
@manasakadapalla2 3 жыл бұрын
thank u soooo much sir
@mkrishna7711
@mkrishna7711 5 жыл бұрын
hi sir i have scenario i have csv file with data i need to separate the file first three rows related to one table and rest is related to second table how can i write the script in python could you please help on this
@gideonejiogu9504
@gideonejiogu9504 4 жыл бұрын
Nice class tnx, but I thought by "open" we mean to open an existing document in the computer
@sandraraynil
@sandraraynil 4 жыл бұрын
It's like opening a Bank Account. You don't have any existing account in a bank, but you open "a new one".
@prasadanantha9587
@prasadanantha9587 4 жыл бұрын
Sir if in a file,one of the line has error and if we want find that line number and print on the screen how to do that task.....
@MrX-ly9vq
@MrX-ly9vq 5 жыл бұрын
Sir aap plz python cbse 12 ka new syllabus k anusar lecture banayiye
@sundeepsaradhi
@sundeepsaradhi 5 жыл бұрын
hi manish if possible send me the syllabus to either my email or whatsapp email : askme.selflearning@gmail.com whatsApp : 9515140494
@deepakkumaar9665
@deepakkumaar9665 4 жыл бұрын
Thanks a lot sir.
@xavierarulraj1781
@xavierarulraj1781 4 жыл бұрын
Sir can you explain the read example of summit Aurora book
@gantaindrasenareddy9518
@gantaindrasenareddy9518 3 жыл бұрын
What about append method in files??
@lsundhar8067
@lsundhar8067 2 жыл бұрын
Where we will use this file opening sir can you explain?
@mujiburrahamanpm4975
@mujiburrahamanpm4975 2 жыл бұрын
Tq sir
@mustafaquraishy2392
@mustafaquraishy2392 4 жыл бұрын
Great Video but please if any can help with this code def main(): #special formatting for the output PRE = '@' SEP = '***END*** ' toOut = input('Enter file name to output ') orderFile = open(toOut, 'w') goon = 'y' while goon == 'y': name = input('Enter the name ') orderFile.write(PRE+name+' ') #concats the PRE char to the name so we know it's a name in the output file num = 'not naut' #dummy value to start so the loop loops while num != '-1': #get sales for each person, uses -1 as a sentinel value to indicate we're done looping num = (input('Enter value or -1 to quit end for ' + name +' ')) #we don't want to write the sentinel to the file if num != '-1': orderFile.write(str(num) + ' ') orderFile.write(SEP) #after we're done with the sales for a person write the seperator to mark the end #if y we loop again for another person goon = input('Would you like to enter another person? y for yes ') main() Here is the result @Alice 19.99 13.33 123 321 ***END*** @Bobby 1 2 3 4 5 6 7 8 9 10 ***END*** @Cathy 3.33 2.22 1.11 ***END*** but how can I calculate the above each employee sales to show result like below @Alice $477.32 ***END*** @Bobby $55.00 ***END*** @Cathy $6.66 ***END***
@kdurga3235
@kdurga3235 2 жыл бұрын
After print(f.read()) f.close() vundadha sir
@MuraliKrishna-wn2bf
@MuraliKrishna-wn2bf 4 жыл бұрын
sir, how to write data on file while runtime...
@rajm5349
@rajm5349 4 жыл бұрын
how to get the resume shortlisted
@nageshbellala5413
@nageshbellala5413 3 жыл бұрын
can i open the already existed file?
@phanindraguntupalli5909
@phanindraguntupalli5909 3 жыл бұрын
Sir what about character
@akshadamirashi7056
@akshadamirashi7056 4 жыл бұрын
Hi sir I have one doubt that If I am writing some data to file and want to read that data again How can I achieve this? As its write and read operation on same file and pointer shifting for each write operation.
@singaiahs796
@singaiahs796 4 жыл бұрын
f1=open("abc.txt" , "w") f1.write("hello how are you") f1.close( ) f1=open("abc.txt" , "r") print(f1.read( )) f1.close( )
@vishalpanday463
@vishalpanday463 4 жыл бұрын
Sir how to store text in fill
@AparnaChoudary
@AparnaChoudary 2 жыл бұрын
sir is this log files or not
@durveshmahajan8097
@durveshmahajan8097 4 жыл бұрын
Sir But What is ROOT FOLDER. PLZZ 🙏 HELP
@sethulakshmy8838
@sethulakshmy8838 4 жыл бұрын
How to load .dat file in python?
@gantaindrasenareddy9518
@gantaindrasenareddy9518 3 жыл бұрын
And you forgot to close the file in last program sir??
@vinayjaiswal887
@vinayjaiswal887 4 жыл бұрын
sir if you teach with the help of python IDE then it will be more helpfull
@manojb2984
@manojb2984 Жыл бұрын
Sir get and set default concept
@576kavitha2
@576kavitha2 3 жыл бұрын
Sir please tell me in the Telugu
@vishalpanday463
@vishalpanday463 4 жыл бұрын
Sir improve you video quality
@satishmandadi5970
@satishmandadi5970 4 жыл бұрын
Super sir
IMPLEMENTATION OF FILES - PYTHON PROGRAMMING
11:38
Sundeep Saradhi Kanthety
Рет қаралды 33 М.
OOPS CONCEPTS | OBJECT ORIENTED PROGRAMMING CONCEPTS IN PYTHON PROGRAMMING
22:24
Sundeep Saradhi Kanthety
Рет қаралды 232 М.
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 54 МЛН
Triple kill😹
00:18
GG Animation
Рет қаралды 13 МЛН
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 17 МЛН
Python Tutorial: Working with JSON Data using the json Module
20:34
Corey Schafer
Рет қаралды 1,1 МЛН
Python Tutorial - 13. Reading/Writing Files
15:22
codebasics
Рет қаралды 198 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 411 М.
DICTIONARIES (CREATION AND ACCESSING) - PYTHON PROGRAMMING
20:54
Sundeep Saradhi Kanthety
Рет қаралды 76 М.
FILES (OPEN,CLOSE,ACCESS MODES) - PYTHON PROGRAMMING
22:59
Sundeep Saradhi Kanthety
Рет қаралды 131 М.
CLASSES & OBJECTS - PYTHON PROGRAMMING
25:23
Sundeep Saradhi Kanthety
Рет қаралды 180 М.
Python Decorators in 15 Minutes
15:14
Kite
Рет қаралды 449 М.
INHERITANCE(SINGLE,MULTI-LEVEL) - PYTHON PROGRAMMING
23:25
Sundeep Saradhi Kanthety
Рет қаралды 88 М.
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 54 МЛН