File IO in Python | Python Tutorial - Day #49

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ต.ค. 2024
  • Learn how to read and write files in Python with this easy-to-follow tutorial. Discover the different methods for handling file input and output, as well as how to work with different file formats. This video is part of our Python tutorial series and is perfect for beginners. Don't miss out on Day #49 of our Python journey!
    Python is one of the most demanded programming languages in the job market. Surprisingly, it is equally easy to learn and master Python. This python tutorial for absolute beginners in Hindi series will focus on teaching you python concepts from the ground up.
    Access the Playlist: • Python for Beginners (...
    Link to the Repl: replit.com/@co...
    Join Replit the browser-based IDE used in this course - join.replit.co...
    ►Checkout my English channel here: / @programmingwithharry
    ►Instagram: codewithharry
    python, C, C++, Java, JavaScript and Other Cheetsheets [++]:
    Playlist: • Coding CheatSheets 🧾 b...
    ►Learn in One Video[++]:
    Python[15 Hr]: • Python Tutorial For Be...
    Python Advance[3.5 Hr]: • Python Programming Cou...
    Python[1 Hr]: • Learn Python In Hindi ...
    Python[2 Hr]: • Python Tutorial In Hin...
    Python[15 Min]: • 15 Minute Python Tutor...
    JavaScript[1 Hr]: • JavaScript Tutorial
    C[1.3 Hr]- • C Programming Tutorial...
    php[1 Hr]: • Learn Php In One Video...
    php[2.3 Hr]: • Php Tutorial for Begin...
    php[Project]- • Login And Registration...
    HTML[30 Min]: • HTML 5 Tutorial For Be...
    CSS[8.5 Hr]: • CSS Tutorial In Hindi ...
    CSS[1.4 Hr]: • CSS 3 Tutorial For Beg...
    Wordpress[3.2 Hr]: • How To Make a WordPres...
    Angular[2 Hr]: • Angular Tutorial in Hindi
    Java[2.3 Hr]: • Java tutorial in hindi 🔥
    Web Scraping[1 Hr]: • Web Scraping Tutorial ...
    MongoDB[2 Hr]: • MongoDb Tutorial For B...
    JQuery[1.1 Hr]: • jQuery Tutorial For Be...
    Git and GitHub[1.1 Hr]: • Git & GitHub Tutorial ...
    ►Complete course [playlist]:
    React: • React Js Tutorials in ...
    Python- • Python Tutorials For A...
    OOP Python- • Object Oriented Progra...
    Java: • Java Tutorials For Beg...
    JavaScript- • JavaScript Tutorials I...
    PHP- • PHP Tutorials in Hindi
    C- • C Language Tutorials I...
    C++- • C++ Tutorials In Hindi
    Git & GitHub- • Git and GitHub Tutoria...
    Android Dev- • Android Development Tu...
    Python GUI- • Python GUI: Tkinter Tu...
    Web Development- • Web Development Tutori...
    Python Django: • Python Django Tutorial...
    Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
    Data Structure and Algo: • Data Structures and Al...
    Follow Me On Social Media
    ►Website (created using Django Rest & Angular): www.codewithha...
    ►Facebook: / codewithharry
    ►Instagram: / codewithharry
    Twitter: / codewithharry
    Comment "#HarryBhai" if you read this 😉😉

ความคิดเห็น • 285

  • @biswajeetpanda3834
    @biswajeetpanda3834 9 หลายเดือนก่อน +22

    Color grading of this video is very impressive Harry Bhaiya. It is adding a mild dark contrast to the video making it more attractive for the eyes.

    • @ChetananandaPati
      @ChetananandaPati 2 หลายเดือนก่อน

      actually, he has not used any contrast, he is making the video at night and the MacOS wallpapers are dynamic to the time so they automatically became darkish! 😉

    • @biswajeetpanda3834
      @biswajeetpanda3834 2 หลายเดือนก่อน

      @@ChetananandaPati i was talking about the video as a whole not the computer screen lol

    • @biswajeetpanda3834
      @biswajeetpanda3834 2 หลายเดือนก่อน +1

      @@ChetananandaPati thank you anyways for letting me know a new thing though.

  • @deekshithaparasu
    @deekshithaparasu ปีที่แล้ว +10

    #day49 completed
    8:43 when you write mode in file the data first stored in flush then after sometime it visible in file, if you want your data to print fast then use file method called file.flush() and sometimes we don't use this method and the information get printed this is because you used close() method,the close() method itself consists of flush method that is why it is considered to be the best practice to close the file

  • @nireekshakamath1635
    @nireekshakamath1635 หลายเดือนก่อน +1

    Wow there is also a free course for Java. After I finish this 100 day course i am going to start learning Java. Now i am in 8th grade, by the time i reach college i have my aim in learning at least 3 programming languages

  • @AbdulREHMAN-co2kd
    @AbdulREHMAN-co2kd ปีที่แล้ว +9

    harry sir pls make a ' 100 days of data science or analysis with python' course or make '100 days SQL for beginners'

  • @fitclub7257
    @fitclub7257 ปีที่แล้ว +46

    Ghar ke niche khadi Ferrari Ka darwaja kholunga.
    Harry Bhai : Jo chiz exist Nahi Karti wo kaise karoge.
    😂😂 Harry Bhai being savage 😂😂😂

  • @VedantEarly-pq1mm
    @VedantEarly-pq1mm 6 หลายเดือนก่อน +21

    4:45 Harry bhai roasted us in python language.💀💀.

  • @ProgrammingNCodingWithHarsh
    @ProgrammingNCodingWithHarsh ปีที่แล้ว +110

    Code With Harry Come With Sundeep Maheshwarii!!

  • @gamingprime989
    @gamingprime989 ปีที่แล้ว +9

    Today I performed an experiment in python in which I could read the source code of another computer language from python as output. So to achieve that I wrote a program C++ whose extension was *.cpp* and the code was
    #include
    using namespace std;
    int main(){
    cout

    • @gamingprime989
      @gamingprime989 ปีที่แล้ว +3

      @@shajarali8835 9 computer languages that includes programming, markup and scripting languages . They are Html, css, js, java, c, c++, gdscript, r and python.
      And you??

    • @nithinnair5927
      @nithinnair5927 11 หลายเดือนก่อน +1

      Small error:- you wrote code=f.read() , it should be code=file.read()

  • @sarthakjain1824
    @sarthakjain1824 ปีที่แล้ว +6

    for doing this in vs code you have to write the directory name too before the file name if they both are in the same directory

    • @risingaw1163
      @risingaw1163 ปีที่แล้ว +2

      how to do this?, I am beginner

    • @hifzaahtesham4742
      @hifzaahtesham4742 ปีที่แล้ว +1

      ​@@risingaw1163
      f=open ('folder name/file name','r')

    • @Future27152
      @Future27152 ปีที่แล้ว

      ​@@hifzaahtesham4742🎉🎉 informative bro

  • @haribolanil
    @haribolanil ปีที่แล้ว +4

    Awesome Dedication with full of Energy and teaching skills

  • @AnuragSingh-yh9ew
    @AnuragSingh-yh9ew ปีที่แล้ว +12

    Beautiful Harry Sir, you are awesome really, Python Rocks and will Rock forever, nothing in the world can replace Python.. Done Present Thanks!

    • @karuneshkumar1484
      @karuneshkumar1484 11 หลายเดือนก่อน

      java script?

    • @Tristaxx
      @Tristaxx 9 หลายเดือนก่อน

      C language>>>

  • @education.online_frevryone
    @education.online_frevryone ปีที่แล้ว +2

    Assalamualaikum Harry Bhai,
    I'm halfway in the tutorial!

  • @InsaaniatDost
    @InsaaniatDost ปีที่แล้ว +1

    💥💥💥💥💥
    Sorry bro.... For unrelated question... But only you can help🌹
    I am unable to publish my post on different pages in menu ( I am making a magazine WordPress site).
    Some people are adding categories in menu.. And mimicking them as menu pages.....
    But this is an appropriate way....
    Waiting for your answer🌹🌹🌹🌹🌹🌹🌹🌹🌹

  • @dattu7944
    @dattu7944 10 หลายเดือนก่อน +10

    00:02 Python file handling: Opening and manipulating files
    01:50 Files can be read, written, and appended using different modes.
    03:25 Understanding file modes in Python
    04:54 Different file modes and their functionalities explained
    06:26 File Reading Modes
    07:47 Writing to a file in Python
    09:14 File handling in Python
    10:57 File handling is important for storing and manipulating data.

  • @aditya-pandey-16
    @aditya-pandey-16 10 หลายเดือนก่อน +3

    4:42 - Bro roasted us in every single language 🥲

  • @navjeevanalone4430
    @navjeevanalone4430 ปีที่แล้ว

    harry bhai GSOC pe ek video banao abhi dates announce hua hai. Coding ki kitni knowlege honi chahiye GSOC crack karne ke liye? Aur apke personal experience aur tips kya honge

  • @karishma7074
    @karishma7074 ปีที่แล้ว +1

    Sir ma 12th class ma hu mana computer ma java ka 6 months ka course kiya or vo 39000 ka tha lakin mana kuchh nahi sikha tha lakin sir ap na free ma itna sikhaya thanks sir

  • @AkashKumar-ge7xm
    @AkashKumar-ge7xm ปีที่แล้ว +6

    Harry bhai I have watched 14 videos and loved your videos, just commented in this new video, and I wanna say, please give us basic and conceptual understanding of python in the field of data analyst, it will be very helpful 🥺

  • @Romit555
    @Romit555 7 หลายเดือนก่อน

    This is strong course. Thank you.👍

  • @Dheeraj_22223
    @Dheeraj_22223 ปีที่แล้ว +2

    You are very nice technology teacher ❤️

  • @anonymous____________________4
    @anonymous____________________4 ปีที่แล้ว +1

    Pranam bhrata 🙏 apka bahutt baht dhanyawad ❤️😌🙏😇🧡😄😄

  • @learnomics
    @learnomics ปีที่แล้ว +1

    Make a video about python vs mojo.

  • @ig_rajneesh.295
    @ig_rajneesh.295 ปีที่แล้ว +1

    # include
    int main() {
    while(2) {
    std::cout

  • @amit-jx5lh
    @amit-jx5lh 9 หลายเดือนก่อน

    Learning is never boring if we have a teacher like Harry Bhai. Love you Bhai, you are genius❤🥰

  • @pranayaranjan4793
    @pranayaranjan4793 7 หลายเดือนก่อน +5

    sir it's not working on VS CODE please help to figure it out.....

  • @imranmohammad19
    @imranmohammad19 3 หลายเดือนก่อน

    @harry, how to use '
    ' or '\t' in input function?
    trying to use :
    #############
    f = open('myfile.txt','w')
    #print(f)
    text = f.write(input("enter the required details: "))
    #input: what are you writing
    wwhat is the result
    print(text)
    f.close()
    ###################
    Expecting 2 lines of out put but result is single line

  • @brajmohanbairwa1680
    @brajmohanbairwa1680 ปีที่แล้ว

    Harry Bhai Web Designing Course bhi Start Karo Plz 🙏🙏🙏🙏🙏🙏

  • @amazingfacts-je4eu
    @amazingfacts-je4eu ปีที่แล้ว

    bhot badiya umda

  • @priyankaofficial9336
    @priyankaofficial9336 3 หลายเดือนก่อน

    100% understandable concept

  • @yuvrj3560
    @yuvrj3560 ปีที่แล้ว +1

    Very nice video

  • @aamir1608
    @aamir1608 ปีที่แล้ว +2

    Day 49 🔥

  • @hnxpriyanshu
    @hnxpriyanshu ปีที่แล้ว +1

    Harry bro agar koii encrypted txt file hai to kya ham use python ki help se read ( ) write ( ) or append ( ) kar sakte hai kya

  • @huzaifazebmirza8755
    @huzaifazebmirza8755 2 หลายเดือนก่อน

    Harry Bhai! Piyare hoty ja rahy ho...Masha Allah

  • @achieversgyanfamily
    @achieversgyanfamily 10 หลายเดือนก่อน +2

    Ferrari toy Car bhi to ho sakti hai 😁😁😂😂@4:45

  • @RajanKumar-fh8te
    @RajanKumar-fh8te ชั่วโมงที่ผ่านมา

    14-10-24 day #49 completed

  • @Aditya_Vyas
    @Aditya_Vyas ปีที่แล้ว

    Present SIr. Thode din piche chal raha tha lekin aab backlogs cleared. Aabse rozz attend karenge. ♥

  • @simple3688
    @simple3688 ปีที่แล้ว +1

  • @AyushhShukla
    @AyushhShukla ปีที่แล้ว

    maine MSc mathematics se kiya hai.. kya mai coding seekh kar IT sector me Jaa skte hu is it worth it?

  • @beautifulsoulaman
    @beautifulsoulaman ปีที่แล้ว +1

    Harry Bhai is Boss😎

  • @AsadAzam-zd3hy
    @AsadAzam-zd3hy ปีที่แล้ว

    Laravel par series bnaye harry bhai

  • @mdsohanurrahmanhridoy1343
    @mdsohanurrahmanhridoy1343 ปีที่แล้ว +2

    #Completed DAY#49/100😍

  • @piyushsaini1087
    @piyushsaini1087 ปีที่แล้ว +1

    Nice sir

  • @MAbdullah2843
    @MAbdullah2843 ปีที่แล้ว +2

    #day49

  • @ahrazathar
    @ahrazathar ปีที่แล้ว

    So I am writing this in July 2023
    I don't need to write Close for my Code to run
    If I open my file in Write mode or Append mode.The result are the same.
    I mean what I understood from write mode that if i use write mode ,everything i wrote before will not be there. A new statement will be written.While when using append mode i can write at the end of my file.But in my case wether I used append mode or Write mode i am getting the same result.Statements are being added at the end

  • @saifabbasi3114
    @saifabbasi3114 ปีที่แล้ว +2

    NYC sir ☺️💗

  • @MayankSharma-mh5bt
    @MayankSharma-mh5bt ปีที่แล้ว

    Should I follow this playlist or older one for python(j am beginner)

    • @mitthistudio7381
      @mitthistudio7381 ปีที่แล้ว

      you should follow this its totally worth it

  • @ORITSU_M...
    @ORITSU_M... 9 หลายเดือนก่อน

    4:53 dil par lag gayi ye baat

  • @mscoder1006
    @mscoder1006 ปีที่แล้ว +1

    Awesome Sir.

  • @mahasaha4227
    @mahasaha4227 ปีที่แล้ว +2

    im present sir

  • @dharvikop
    @dharvikop ปีที่แล้ว +1

    day 49 done

  • @mariamhasan3733
    @mariamhasan3733 ปีที่แล้ว

    Day #49 done!

  • @abdurrob6424
    @abdurrob6424 ปีที่แล้ว

    Bhai iss project ki baad MERN ki opor video banana please

  • @Haseena512
    @Haseena512 ปีที่แล้ว +1

    Nice session

  • @hiteshdabral1679
    @hiteshdabral1679 ปีที่แล้ว

    harry bhai is also naruto's fan😍 great to know🤩

  • @spittingfacts7483
    @spittingfacts7483 ปีที่แล้ว +3

    Consistency to koi aap se seekhe ,
    Seekhe aap se 😂❣️

  • @dhrubajyotisaha8460
    @dhrubajyotisaha8460 6 หลายเดือนก่อน

    sir rust ka full course playlist bnado please

  • @gamezoo6700
    @gamezoo6700 ปีที่แล้ว

    god level coding karte ho bhyia aaap big fan

  • @Rishabh_Dayal4444
    @Rishabh_Dayal4444 ปีที่แล้ว

    sir aaaj or kal ka class such me ada intresting tha maja aa gaya 😍

  • @sohambhondwe7842
    @sohambhondwe7842 5 หลายเดือนก่อน

    #Completed: Day 49/100😀

  • @hnxpriyanshu
    @hnxpriyanshu ปีที่แล้ว +3

    Ek baat mujhe confirm kara do koii Ki jaise file exist nahi karto aur open karne par ban jati hai waise hi kya farari ka darwaja kholne se sach me farari a jayegi kya 😂

  • @gamex9553
    @gamex9553 ปีที่แล้ว

    Day 49 completed

  • @RiteshSahu-bo9gq
    @RiteshSahu-bo9gq 3 หลายเดือนก่อน +1

    suggestion: Vs code doesnt need to be closed

  • @meditationmusic6482
    @meditationmusic6482 ปีที่แล้ว

    Thanks sir.

  • @vaibhavsoni4680
    @vaibhavsoni4680 9 หลายเดือนก่อน

    # to write in a file
    with open("garbage2.txt","w") as file:
    file.write("hello this is write in file handling with method
    ")
    file.write("this is second line thank you
    ")
    # to append in a file

    with open("garbage2.txt","a") as file2:
    file2.write("hello this is append in a file with method
    ")
    file2.write("this is another second line
    ")
    # to read a file

    with open("garbage2.txt","r") as file3:
    show=file3.read()
    print(show)

  • @TalhaTariq-i2e
    @TalhaTariq-i2e 4 หลายเดือนก่อน

    Nice🎉

  • @aaradhyashriwas4887
    @aaradhyashriwas4887 ปีที่แล้ว

    Hiiiii can you please make one video on tensorflow/keras i have presention in 2 days please please

  • @jatinbhatt2222
    @jatinbhatt2222 ปีที่แล้ว +2

    Present Sir on Day-49 ✋

  • @mr.ytech.3430
    @mr.ytech.3430 ปีที่แล้ว

    Thnx Bhaiya

  • @futurecode7562
    @futurecode7562 ปีที่แล้ว +1

    Just loved this content ❤❤❤

  • @Aerish369
    @Aerish369 ปีที่แล้ว

    Thankk you

  • @Daily_dose_motivation29
    @Daily_dose_motivation29 ปีที่แล้ว

    Happy makar Sankranti bhaiya ❤️

  • @akkygamming6814
    @akkygamming6814 ปีที่แล้ว

    awesome

  • @omghaswala8839
    @omghaswala8839 ปีที่แล้ว

    Pls pls pls make a video on best languages to use for data analytics and course on data analytics as well pls pls pls pls pls

  • @samirroka1710
    @samirroka1710 ปีที่แล้ว

    Hello bhaiya, kya ham ek yesa application bana sakte he jo wondershare ka recoverit ki tarah ho aur free ho?
    Please Reply ASAP sir because it's crucial for me!

  • @fardin6373
    @fardin6373 ปีที่แล้ว

    Harry bhai node js pe banao please

  • @diveswebtechnology2918
    @diveswebtechnology2918 ปีที่แล้ว

    very nice

  • @FauL_UppU
    @FauL_UppU ปีที่แล้ว +1

    Ohooooo 50% complete hoone hie wala h 😃😃😃😃😃😃😃😃😃😃🇮🇳🇮🇳🇮🇳🇮🇳

  • @PRAKASHCHANDMEENAIIITDharwad
    @PRAKASHCHANDMEENAIIITDharwad 10 วันที่ผ่านมา

    awesome sir I am from iiitdwd 😍 #superl_lecture

  • @caydantech
    @caydantech 9 หลายเดือนก่อน

    4:50
    Bhai aaegi farari bhi love u 😘💕

  • @hacknation2460
    @hacknation2460 ปีที่แล้ว

    49th lecture done

  • @shubhamparmar1806
    @shubhamparmar1806 ปีที่แล้ว

    #CodeWithHarry bhaiya please make a playlist on MVC pattern or any frame work

  • @Noman6037
    @Noman6037 ปีที่แล้ว

    U are the best

  • @YogeshKumar-Yogi06
    @YogeshKumar-Yogi06 ปีที่แล้ว +3

    Harry Bhai....mera VS code to file read hi n kr paa rha hai
    No such directory bta rha hai error m
    Please tell me how to solve this problem

    • @prathamjain8925
      @prathamjain8925 8 หลายเดือนก่อน

      Bhai mera bhi same yrr koi solution mila kya?

  • @Barun_sir
    @Barun_sir ปีที่แล้ว

    Very nice👍

  • @sureshkasnia7294
    @sureshkasnia7294 ปีที่แล้ว

    I am new student from Sri ganganagar (Raj.)

  • @shahilarman48vlog
    @shahilarman48vlog ปีที่แล้ว +2

    Love your videos 😍😍😍

    • @hnxpriyanshu
      @hnxpriyanshu ปีที่แล้ว

      Harry = 143
      Love = Harry **100
      print (Love)

  • @xequ2
    @xequ2 ปีที่แล้ว +1

    💖💖

  • @yatindrapabbati6878
    @yatindrapabbati6878 ปีที่แล้ว

    DAY49_PRESENT SIR!

  • @nomanshabbir5055
    @nomanshabbir5055 ปีที่แล้ว

    Bhai def function use kr lo na or "f" string

  • @lakhyadeepsen
    @lakhyadeepsen ปีที่แล้ว +1

    Day 49 of 100 of python challenge completed. #100DaysofCode #100dayspythonchallenge

  • @notathing123
    @notathing123 ปีที่แล้ว +1

    Please try bhai-lang coding language

  • @Keepitshort417
    @Keepitshort417 ปีที่แล้ว

    present sir from pakistan tharparkar

  • @aun5252
    @aun5252 ปีที่แล้ว

    nice
    ]

  • @shivamchaudhary8592
    @shivamchaudhary8592 ปีที่แล้ว

    #Day49 Present Sir

  • @talhasaeed5453
    @talhasaeed5453 ปีที่แล้ว

    Big fan sir

  • @Manish-qt1bz
    @Manish-qt1bz ปีที่แล้ว

    Present Sir 🔥

  • @__ayu
    @__ayu ปีที่แล้ว

    #DAY49 COMPLETED
    #CodeWithHarry

  • @qzarmy7059
    @qzarmy7059 8 หลายเดือนก่อน

    I am present bhaiya ❤❤

  • @yatibhatnagar5370
    @yatibhatnagar5370 ปีที่แล้ว +1

    i tried many types but replit showing red underline under open🙄

  • @GamingMatrix998
    @GamingMatrix998 ปีที่แล้ว

    #Harry bhai