#13 Python Tutorial for Beginners | IDLE Previous Command | Clear Screen?

Поделиться
HTML-код
  • Опубликовано: 14 ноя 2024
  • НаукаНаука

Комментарии •

  • @akashgupta_11
    @akashgupta_11 6 лет назад +443

    for scrolling you can do cntrl + J.
    this will work

  • @lakshmichandraaa
    @lakshmichandraaa 4 года назад +177

    If you want the previous command or any other older commmand ... simply click the cursor on that line(s) and press enter !
    There you go ! :)

    • @AY-uc5om
      @AY-uc5om 4 года назад +4

      Most underrated comment

    • @vikramsey
      @vikramsey 3 года назад +3

      That was helpful. Thanks.

    • @anuragsangale602
      @anuragsangale602 3 года назад +1

      Thanx

    • @PrashantKumar-xf6cx
      @PrashantKumar-xf6cx 3 года назад +1

      Thnx man 🥰

    • @imdv9748
      @imdv9748 3 года назад +2

      That was very much helpful thank you, your comment is underrated

  • @singhchetan96
    @singhchetan96 4 года назад +134

    i dont know how can one dislike these type of videos. great work navin reddy. love to watch and share your next videos. thanks man!

    • @anuzravat
      @anuzravat 4 года назад +1

      Believe It Or Not Its ClickBait

    • @caniget600subscriberswitho5
      @caniget600subscriberswitho5 4 года назад +1

      @@anuzravat please open up

    • @anuzravat
      @anuzravat 4 года назад +2

      @@caniget600subscriberswitho5 This is no command to clear screen in python till now

    • @shivangikumari5425
      @shivangikumari5425 4 года назад +2

      Because they never understand 🤪🤪😋😋😜😜😜

    • @MultiReview
      @MultiReview 4 года назад +2

      @@anuzravat becoz maybe they got better than Navin reddy (alian)

  • @yugandharsurya
    @yugandharsurya 5 лет назад +17

    This channel is very useful to know most of the new technologies

  • @shankargope2475
    @shankargope2475 Год назад +1

    The things that really amaze me that you are not only just teaching the language but also revealing the small vital hacks that are really helpful when we get our hands on it👌. Thanks a lot, really appreciate that🙏

  • @deepanshumishra4568
    @deepanshumishra4568 4 года назад +13

    sir, jitni tareef karu utna kam
    your efforts are, just amazing :)

  • @shashikantmane1055
    @shashikantmane1055 4 года назад +2

    I have visited some channel.but honestly I would like to say that you are amazing.the way of talking is nice.Keep growing.Spread the knowledge.

  • @shubhamvaidhy8331
    @shubhamvaidhy8331 5 лет назад +11

    Yes sir that is I want yesterday when i was using IDLE that confusion comes in my mind..
    Thanks for this..
    Learning will fun using your Python tutorial I watched every lectr one by one ...😀

  • @prasad4mvja
    @prasad4mvja 4 года назад +3

    1) Change IDLE configuration Options => Configure IDLE => General tab => Shell preferences => Auto-Squeeze min lines [50] and change 50 to a large count like 1000.
    2) Execute command print("
    " * 100) to clear screen

  • @mitalipurwar1436
    @mitalipurwar1436 4 года назад +30

    quarantine going well with your videos sir! absolutely enjoying studying!!

  • @yashwanths7533
    @yashwanths7533 9 месяцев назад +1

    you can use the os module along with the system function to clear the screen import os
    def clear_screen():
    if os.name == 'posix':
    # For Linux and macOS
    os.system('clear')
    elif os.name == 'nt':
    # For Windows
    os.system('cls')
    You can run this one time.
    Next you can start using this command "clear_screen()" to clear the screen as and when needed.

  • @richarddonald6320
    @richarddonald6320 Месяц назад

    It is very easy to learn from you Sir

  • @commando5134
    @commando5134 4 года назад +1

    no.1 work sir no one can compete with your this work.
    thanks a lot.......

  • @poorna685
    @poorna685 4 года назад

    why there are dislikes on this video,he just said what he needs to, are you people expected him to dance or do stunts in the video titled as "python tutorial for beginners",ridiculous people.

  • @chitraaaaa
    @chitraaaaa Год назад

    hi...go to taskbar setting...automatic hide the taskbar in desktop mode..this will give unlimited lines in idle

  • @akash6327
    @akash6327 3 года назад

    thanks now i can use this else i was using cmd

  • @varunjha7731
    @varunjha7731 6 лет назад +7

    Great Video series !!! Hats off Sir looking forward to more videos on Python. I had the same exact question in my mind when I was learning Python today. Thanks, Sir !!!

  • @archanaittaboina6547
    @archanaittaboina6547 6 месяцев назад

    Thank sir.I tried it for history-next(down arrow) also😊

  • @dineshkumargubba3688
    @dineshkumargubba3688 6 лет назад +4

    Try This One.
    >>>import subprocess as sp
    >>>temp=sp.call('cls', shell=True)

    • @pushpendramangroliya2925
      @pushpendramangroliya2925 6 лет назад +1

      Thank you for clear screen code of python prompt.

    • @roshan.handle
      @roshan.handle 5 лет назад +2

      thank u sir for the above. But it clears only screen not our buffer(previously work is still remain in memory). Have u any code that clear python intrepreter screen as well as buffer memory?

    • @swathiyadati9680
      @swathiyadati9680 5 лет назад +1

      after that what should we give?i didn't get you..

    • @puramdurgaprasad5894
      @puramdurgaprasad5894 4 года назад

      It's not working in python 3.7.0 version

  • @ismailabdow3844
    @ismailabdow3844 5 лет назад +1

    thx sir watching from garissa-kenya ...4/7/2019.. 7:15 pm thnks alot ur videos are much better than wat am taught at university

  • @VictorMonday-lq3xs
    @VictorMonday-lq3xs 11 месяцев назад

    Thanks very much, highly appreciated. Pls come again with the"idle" you enter up key to access the last elements. And also for the cmd. You press upr for?, Pls come up with this again

  • @MeetSinojia7
    @MeetSinojia7 4 года назад +1

    I don't know if it works for IDLE on windows, but if you are using python interpreter in linux terminal, you can do:
    import os
    os.system('clear')

  • @yarlagaddapradeepkumar1560
    @yarlagaddapradeepkumar1560 6 лет назад

    thq very much....bcz u understand the person who always typing the repeated ..stufff...thq veryy much for above......

  • @maheshpatil6232
    @maheshpatil6232 4 года назад +1

    Really Helpful videos till now. I suggested my cousin also Keep Going :)

  • @rajkelawala28
    @rajkelawala28 4 месяца назад

    To clear a screen we can use this:
    import os
    x = os.system("clear") # Linux/Mac
    x = os.system("CLS") # For windows

  • @imtiazem
    @imtiazem 3 года назад

    thank you for making these videos.

  • @richarddonald6320
    @richarddonald6320 Месяц назад

    import os
    os.system('cls || clear')
    This command will clear the messages in terminal

  • @bestengineering2774
    @bestengineering2774 6 лет назад +3

    Thanks for this video. Been looking for previous command...

  • @vidyakumari1466
    @vidyakumari1466 4 года назад +9

    To clear screen
    We have to import os module by writing
    import os
    And then use the in-built function
    os.system("cls")
    Finally you can keep it as an function cls
    Like this-
    import os
    def cls():
    os.system("cls")

  • @thebunerikhan
    @thebunerikhan 6 лет назад +3

    Ctrl + L also does kind of magic trick, it does not clear the screen but it starts a clean screen.

    • @mohammadadnan5988
      @mohammadadnan5988 5 лет назад

      What do you mean by a clean screen? Are the values cleared for variables?

  • @abettertruth1198
    @abettertruth1198 Год назад

    thx a lot for help navin sir

  • @aravindmarri9107
    @aravindmarri9107 4 года назад +52

    ctrl+F6 for new shell or restart the shell...!

  • @SachinYadav-wh7dm
    @SachinYadav-wh7dm 3 года назад +2

    Use Ctrl + arrow keys for scroll up and down

  • @arhbaramov6296
    @arhbaramov6296 2 года назад +1

    U can put your cursor (wit arrow or with mouse) on any row, press ENTER 😋😂🥰 and you have a copy of that row in the current command line👍👌😋, btw thanks for the course ;)

  • @yarlagaddapradeepkumar1560
    @yarlagaddapradeepkumar1560 5 лет назад

    thq very much , bcz we are always trying, but atleast u can save our time during practice

  • @SakarSubedi
    @SakarSubedi 4 года назад +9

    I clear the python shell by using "Ctrl + Alt + L" in my Ubuntu terminal. Try 'Ctrl + L' in other OS if "Ctrl + Alt + L" doesn't work
    Alternative Option:
    def cls():
    print("
    " * 100)
    cls()
    # Call cls() whenever you want to clear the screen. This just prints 100 black lines and imitates as if it is clearing the screen.

  • @jaipalreddy7365
    @jaipalreddy7365 6 лет назад

    this is useful for faster access of previous commands used

  • @charithsai1750
    @charithsai1750 3 года назад

    love your videos and effort

  • @abhi_7
    @abhi_7 4 года назад +1

    Thank you bro...!!!A.. great platform to learn python...🥰

  • @charancharan2417
    @charancharan2417 6 лет назад +3

    We don't have command but we can skip no of lines by
    print("
    "*20)
    It will take you to 20 lines after the last command you were.
    print("
    "*30)
    It will take you to 30 lines from your last line

  • @harmanpreetsingh1501
    @harmanpreetsingh1501 4 года назад

    i know a technique just go to previous command using up key and press enter and it will give you the previous statement

  • @diptodey7152
    @diptodey7152 4 года назад

    awesome sir... u r really great

  • @atrichoudhury1777
    @atrichoudhury1777 4 года назад

    thank you very much for the series

  • @slonbeskonechen8310
    @slonbeskonechen8310 3 года назад

    Thank you! This is what I was missing....

  • @jayanthg3777
    @jayanthg3777 4 года назад

    Sir u r great ....how u know these type of codings..

  • @mike_98058
    @mike_98058 2 года назад

    Thanks for this short, uiseful video. BTW, my aging ears did much better when I changed the playback speed to .75

  • @SatyendraJaiswalsattu
    @SatyendraJaiswalsattu 6 лет назад +2

    for winows: type
    from os import system, name
    system('cls')

  • @Ram.k93
    @Ram.k93 3 года назад

    Great series for a beginner to learn python

  • @sarthakverma3467
    @sarthakverma3467 3 года назад +1

    Thank you Sir for your efforts...#loveyou3000

  • @piyushkhanduri2905
    @piyushkhanduri2905 3 года назад

    there is nothing like clearing but there is a key to reopen the shell i.e (ctrl + f6) by pressing these keys together it will work .

  • @abhishekagrawal1076
    @abhishekagrawal1076 4 года назад +1

    amazing content

  • @Griffinunofficial
    @Griffinunofficial 9 месяцев назад

    click shell.then restart shell.i think this works

  • @arupmaji9229
    @arupmaji9229 4 года назад

    Thanks a lot for this tutorial sir 😊

  • @thuonganga5605
    @thuonganga5605 2 года назад

    To clear screen in the REPL/IDLE, press CTRL + L on Linux and MacOS

  • @aniruddhadhandar
    @aniruddhadhandar 3 года назад

    It is possible just simply ⏬👇
    >>> import os
    >>> os.system('cls')
    And your screen will be clear...

  • @mdehsanulhaque9186
    @mdehsanulhaque9186 4 года назад

    i am using IDLE softare and for project it is necessary to install a new software ( not installed pycharm)

  • @rahulsharma-ts3mq
    @rahulsharma-ts3mq Год назад

    thank you

  • @vijaymalviya23
    @vijaymalviya23 3 года назад +1

    Fn + up arrow is already shortcut key for the previous command

  • @sreeharsha6383
    @sreeharsha6383 4 года назад +6

    Literally me: WTF.....! Its like spoonfeeding. Amazed : )

  • @rishabhgopalsoni8131
    @rishabhgopalsoni8131 5 лет назад +9

    sir i want to learn app development ,please upload the videos of app development or provide the path of app development learning

  • @aswinighosh928
    @aswinighosh928 4 года назад

    very helpful

  • @chufflechannel8812
    @chufflechannel8812 3 года назад

    To clear the screen use this
    import os
    import time
    # for windows
    # os.system('cls')
    os.system("ls")
    time.sleep(2)
    # Ubuntu version 10.10
    os.system('clear')

  • @rvstech8435
    @rvstech8435 2 года назад

    use cntrl+d to exit faster

  • @vikasraj3203
    @vikasraj3203 2 года назад +2

    To clear the python shell we use this
    >>> import os
    >>> os.system( 'cls' )

  • @vergilnelo
    @vergilnelo 4 года назад +1

    i use ipython in linux clear command and up arrow works by default, ipython runs in terminal so may be if you use python in cmd it may work idle i am not sure

  • @OneShotOneKill924
    @OneShotOneKill924 3 года назад

    Nice

  • @jyothiprakashs3823
    @jyothiprakashs3823 Год назад

    To clear the screen use print("\033c")

  • @BiharmeansBahaar
    @BiharmeansBahaar 3 года назад

    I m new to Python n coding, so i just want to clear a confusion, IDLE is command Promt or Pycharm. Or is it the diffrent thing? Pls Help

  • @suyashkumar0312
    @suyashkumar0312 4 года назад +1

    How do I change my keys to open task view
    I want to open task view with f3 plz help me

  • @Saha121-h6y
    @Saha121-h6y 5 лет назад

    I will subscribe within today

  • @cu9366
    @cu9366 6 лет назад

    great video sir

  • @madhuribendale6532
    @madhuribendale6532 5 лет назад +3

    I learned from ur videos but how can I get certification.

  • @sugreev2320
    @sugreev2320 5 лет назад

    You can do this by pressing enter after finisheing it you will get it in the next line

    • @sugreev2320
      @sugreev2320 5 лет назад

      Press enter 2 times in the line

  • @moorthyy27
    @moorthyy27 5 лет назад +1

    thanks, good video bro

  • @mubashirabbas5647
    @mubashirabbas5647 4 года назад

    sir which tool did you use for editing?plz ans

  • @archanasdemo1477
    @archanasdemo1477 4 года назад

    use two fingers at the same time and moveyour hand up or down

  • @riaz_ay
    @riaz_ay 5 лет назад +2

    Press cntrl+n
    Then click run
    And click python shell

  • @sakash23
    @sakash23 4 года назад

    sir which software u use for editing the videos

  • @aptgals
    @aptgals 4 года назад

    Ctrl+L will clear screen in ubuntu terminal

  • @thomachanrj9064
    @thomachanrj9064 6 лет назад

    Thanks a lot Sir

  • @tokiahmed7865
    @tokiahmed7865 8 месяцев назад

    Sir , The changes in previous history has not occurred during my practice

  • @kasgeb.d
    @kasgeb.d 6 лет назад +18

    "Alt+n" is good too

    • @basha132
      @basha132 5 лет назад +1

      "Alt+n" is used from top to bottom if i want to use previous command what is the key i should use

    • @kartiky5765
      @kartiky5765 4 года назад +2

      @@basha132 alt+p

  • @akashjadhav8450
    @akashjadhav8450 4 года назад

    Can u help me out with python decorators in details, it is more often asked questions in interview

  • @adviksingh8760
    @adviksingh8760 6 лет назад +9

    import os
    try:
    os.system("cls") # For Windows
    except:
    os.system("clear") # For Linux and Unix

  • @Even_cats_smile
    @Even_cats_smile 2 года назад

    nice I'M NOT THE ONLY ONE

  • @jayanthvenavenka7668
    @jayanthvenavenka7668 4 года назад

    you can run all these codes even in vs code and there you already have easy shortcuts for everything and to get the previous command in vs code you can use 'Alt'+'Shift'+down-arrow

  • @tanmaypadhi6697
    @tanmaypadhi6697 4 года назад

    ctrl + F6 for restart IDLE

  • @chandandchowdhury5788
    @chandandchowdhury5788 4 года назад

    Navin sir myself Aritra I found a way to clear the screen for python shell hopefully it will work with idle also
    .........................
    os.system('cls' if os.name == 'nt' else 'clear')

  • @slobodantajisic2762
    @slobodantajisic2762 5 лет назад

    It is not possible to clear Python IDLE shell without some external module integration. If you really want to get a blank pure fresh shell just close the previous shell and run it again.

  • @swamybyra4598
    @swamybyra4598 3 года назад

    "AWESOME"

  • @ArunSharma-ue1es
    @ArunSharma-ue1es 4 года назад

    ctrl+L will work for clear the screen.

  • @buvaneswarin4200
    @buvaneswarin4200 Год назад

    Sir.....In my idle if I click p then it's asking whether to print the screen....if I click just o it's asking options to open the saved folders....
    I don't know what to do sir ...I have my exams coming and I am not able to practice any prgms...pls help me sir

  • @Kennerdoll
    @Kennerdoll 4 года назад

    what software do you use for editing?

  • @kunalkumar7404
    @kunalkumar7404 4 года назад

    Hello sir , how to make title bar visible ...

  • @kartiktyagi5234
    @kartiktyagi5234 4 года назад

    Sir couldn't find options for reverse settings in spyder anaconda

  • @rushdisami5146
    @rushdisami5146 Год назад

    try
    import os
    os.system("cls")
    It worked for me :D

  • @harpreet_dhiman
    @harpreet_dhiman 4 года назад

    When I run a code on PyCharm, it shows 'Python was not found but can be installed from Microsoft store' even after installing Python. How can I resolve this issue?

  • @MANISHSHARMA-xk1su
    @MANISHSHARMA-xk1su 6 лет назад

    yaa...Enjoying a lot...

  • @rptech6902
    @rptech6902 3 года назад

    Sir mare me uper koi option nahi ata isa kyo?? PLZZ reply

  • @NEHAKUMARI-nj8rw
    @NEHAKUMARI-nj8rw 4 года назад

    How to do sum of two signal using python??