File IO in Python | Python Tutorial - Day #49

Поділитися
Вставка
  • Опубліковано 27 сер 2024

КОМЕНТАРІ • 280

  • @VedantEarly-pq1mm
    @VedantEarly-pq1mm 4 місяці тому +15

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

  • @biswajeetpanda3834
    @biswajeetpanda3834 7 місяців тому +18

    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.

    • @user-jz7ub7mz7b
      @user-jz7ub7mz7b 29 днів тому

      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 29 днів тому

      @@user-jz7ub7mz7b i was talking about the video as a whole not the computer screen lol

    • @biswajeetpanda3834
      @biswajeetpanda3834 29 днів тому +1

      @@user-jz7ub7mz7b 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

  • @fitclub7257
    @fitclub7257 Рік тому +41

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

  • @ProgrammingNCodingWithHarsh
    @ProgrammingNCodingWithHarsh Рік тому +105

    Code With Harry Come With Sundeep Maheshwarii!!

  • @dattu7944
    @dattu7944 8 місяців тому +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.

  • @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'

  • @AnuragSingh-yh9ew
    @AnuragSingh-yh9ew Рік тому +11

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

  • @haribolanil
    @haribolanil Рік тому +4

    Awesome Dedication with full of Energy and teaching skills

  • @nireekshakamath1635
    @nireekshakamath1635 11 днів тому

    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

  • @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 10 місяців тому +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 11 місяців тому +1

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

    • @Future27152
      @Future27152 10 місяців тому

      ​@@hifzaahtesham4742🎉🎉 informative bro

  • @education.online_frevryone
    @education.online_frevryone Рік тому +2

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

  • @huzaifazebmirza8755
    @huzaifazebmirza8755 17 днів тому

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

  • @aditya-pandey-16
    @aditya-pandey-16 9 місяців тому +3

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

  • @pranayaranjan4793
    @pranayaranjan4793 5 місяців тому +3

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

  • @priyankaofficial9336
    @priyankaofficial9336 2 місяці тому

    100% understandable concept

  • @Dheeraj_22223
    @Dheeraj_22223 Рік тому +2

    You are very nice technology teacher ❤️

  • @beautifulsoulaman
    @beautifulsoulaman Рік тому +1

    Harry Bhai is Boss😎

  • @anonymous____________________4

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

  • @amit-jx5lh
    @amit-jx5lh 7 місяців тому

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

  • @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

  • @imranmohammad19
    @imranmohammad19 2 місяці тому

    @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

  • @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 5 місяців тому

    This is strong course. Thank you.👍

  • @aamir1608
    @aamir1608 Рік тому +2

    Day 49 🔥

  • @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🌹🌹🌹🌹🌹🌹🌹🌹🌹

  • @ig_rajneesh.295
    @ig_rajneesh.295 Рік тому +1

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

  • @simple3688
    @simple3688 Рік тому +1

  • @hnxpriyanshu
    @hnxpriyanshu Рік тому +2

    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 😂

  • @saifabbasi3114
    @saifabbasi3114 Рік тому +2

    NYC sir ☺️💗

  • @mscoder1006
    @mscoder1006 Рік тому +1

    Awesome Sir.

  • @mdsohanurrahmanhridoy1343
    @mdsohanurrahmanhridoy1343 Рік тому +2

    #Completed DAY#49/100😍

  • @vaibhavsoni4680
    @vaibhavsoni4680 8 місяців тому

    # 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)

  • @RiteshSahu-bo9gq
    @RiteshSahu-bo9gq Місяць тому +1

    suggestion: Vs code doesnt need to be closed

  • @piyushsaini1087
    @piyushsaini1087 Рік тому +1

    Nice sir

  • @YogeshKumar-Yogi06
    @YogeshKumar-Yogi06 Рік тому +2

    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 6 місяців тому

      Bhai mera bhi same yrr koi solution mila kya?

  • @futurecode7562
    @futurecode7562 Рік тому +1

    Just loved this content ❤❤❤

  • @learnomics
    @learnomics Рік тому +1

    Make a video about python vs mojo.

  • @yuvrj3560
    @yuvrj3560 Рік тому +1

    Very nice video

  • @EcoGeniousX
    @EcoGeniousX Рік тому +2

    Love your videos 😍😍😍

    • @hnxpriyanshu
      @hnxpriyanshu Рік тому

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

  • @amazingfacts-je4eu
    @amazingfacts-je4eu Рік тому

    bhot badiya umda

  • @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

  • @sohambhondwe7842
    @sohambhondwe7842 3 місяці тому

    #Completed: Day 49/100😀

  • @brajmohanbairwa1680
    @brajmohanbairwa1680 Рік тому

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

  • @Aditya_Vyas
    @Aditya_Vyas Рік тому

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

  • @Rishabh_Dayal4444
    @Rishabh_Dayal4444 Рік тому

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

  • @hiteshdabral1679
    @hiteshdabral1679 Рік тому

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

  • @dhrubajyotisaha8460
    @dhrubajyotisaha8460 5 місяців тому

    sir rust ka full course playlist bnado please

  • @gamezoo6700
    @gamezoo6700 Рік тому

    god level coding karte ho bhyia aaap big fan

  • @AsadAzam-zd3hy
    @AsadAzam-zd3hy Рік тому

    Laravel par series bnaye harry bhai

  • @spittingfacts7483
    @spittingfacts7483 Рік тому +3

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

  • @ORITSU_M...
    @ORITSU_M... 8 місяців тому

    4:53 dil par lag gayi ye baat

  • @Haseena512
    @Haseena512 Рік тому +1

    Nice session

  • @SaiGaneshPulijala
    @SaiGaneshPulijala 2 місяці тому +1

    if any one reading this please can anyone tell me what to do if it shows filenotfound error even though i have created the file in the same location in vs code.

  • @Aerish369
    @Aerish369 Рік тому

    Thankk you

  • @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

  • @akmalraza2904
    @akmalraza2904 7 місяців тому

    4:45 Bro went personal here🥲

  • @mariamhasan3733
    @mariamhasan3733 Рік тому

    Day #49 done!

  • @user-sq5ou8yu3x
    @user-sq5ou8yu3x 3 місяці тому

    Nice🎉

  • @dharvikop
    @dharvikop Рік тому +1

    day 49 done

  • @meditationmusic6482
    @meditationmusic6482 Рік тому

    Thanks sir.

  • @Noman6037
    @Noman6037 Рік тому

    U are the best

  • @aaradhyashriwas4887
    @aaradhyashriwas4887 Рік тому

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

  • @yatibhatnagar5370
    @yatibhatnagar5370 Рік тому +1

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

  • @achieversgyanfamily
    @achieversgyanfamily 8 місяців тому +1

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

  • @Keepitshort417
    @Keepitshort417 Рік тому

    present sir from pakistan tharparkar

  • @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

  • @sureshkasnia7294
    @sureshkasnia7294 Рік тому

    I am new student from Sri ganganagar (Raj.)

  • @mr.ytech.3430
    @mr.ytech.3430 Рік тому

    Thnx Bhaiya

  • @lakhyadeepsen
    @lakhyadeepsen Рік тому +1

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

  • @yashkirola
    @yashkirola Рік тому +9

    not working in vs code

  • @abdurrob6424
    @abdurrob6424 Рік тому

    Bhai iss project ki baad MERN ki opor video banana please

  • @caydantech
    @caydantech 7 місяців тому

    4:50
    Bhai aaegi farari bhi love u 😘💕

  • @shubhamparmar1806
    @shubhamparmar1806 Рік тому

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

  • @coderlife_2003
    @coderlife_2003 Рік тому

    Very nice👍

  • @jatinbhatt2222
    @jatinbhatt2222 Рік тому +2

    Present Sir on Day-49 ✋

  • @gamex9553
    @gamex9553 Рік тому

    Day 49 completed

  • @Daily_dose_motivation29
    @Daily_dose_motivation29 Рік тому

    Happy makar Sankranti bhaiya ❤️

  • @qzarmy7059
    @qzarmy7059 7 місяців тому

    I am present bhaiya ❤❤

  • @akkygamming6814
    @akkygamming6814 10 місяців тому

    awesome

  • @DurgaSuthar-tw9eb
    @DurgaSuthar-tw9eb 7 місяців тому

    iam trying to create a file by typing this code in the Jupyter notebook and it's not working, how can i use these functions in Jupyter notebook??

  • @FauL_UppU
    @FauL_UppU Рік тому +1

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

  • @najibullahnaziry2018
    @najibullahnaziry2018 Рік тому

    Very nice

  • @diveswebtechnology2918
    @diveswebtechnology2918 Рік тому

    very nice

  • @CoderzGaming093
    @CoderzGaming093 Рік тому +1

    #day49

  • @mahasaha4227
    @mahasaha4227 Рік тому +1

    im present sir

  • @fardin6373
    @fardin6373 Рік тому

    Harry bhai node js pe banao please

  • @hacknation2460
    @hacknation2460 Рік тому

    49th lecture done

  • @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

  • @talhasaeed5453
    @talhasaeed5453 Рік тому

    Big fan sir

  • @hadeesshakir9469
    @hadeesshakir9469 6 місяців тому

    Question is u used a but u wrote write not append in the ending code howw........

  • @AyushhShukla
    @AyushhShukla Рік тому

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

  • @Manish-qt1bz
    @Manish-qt1bz Рік тому

    Present Sir 🔥

  • @azizismi88
    @azizismi88 Рік тому

    Then I placed all of my trust in Allah and started to run towards the edge and then I ran off. And then I started to fly upwards and Allah tore apart the net by his Mercy. I managed to escape from there very easily. And then I saw people down below who looked very busy in their jobs.
    👉Find more about these important dreams of Muhammad Qasim. The end time is very near.

  • @yatindrapabbati6878
    @yatindrapabbati6878 Рік тому

    DAY49_PRESENT SIR!

  • @GamingMatrix998
    @GamingMatrix998 Рік тому

    #Harry bhai

  • @xequ2
    @xequ2 Рік тому +1

    💖💖

  • @notathing123
    @notathing123 Рік тому +1

    Please try bhai-lang coding language

  • @danishzaidi9695
    @danishzaidi9695 9 місяців тому

    If some guys are using vs code then in that case only the name of the file don't work you have to copy the path of the file and past it Hope it's helpful