Podcast Lookup

_13 Python Tutorial for Beginners _ IDLE Previous Command _ Clear Screen_

Python To You

  • October 16, 2026
  • 3 min
Episode page

About this episode

No description.

Transcript

From the publisher

This transcript comes from the podcast’s own feed, shown as the publisher wrote it.

_13 Python Tutorial for Beginners _ IDLE Previous Command _ Clear Screen_

00:00—
  1. Speaker 1

    Subscribe the channel and press on the bell icon so that you will not miss any updates. Welcome back aliens. My name is Devyn Reddy and in this video we will talk about how do you access the previous commands in IDLE. Now when you work on Python, you know, so we write a lot of code, right? Example, if I want to add two numbers or if I want to perform some operation like x equal to 2 plus 4 plus 9. Now in this case, when you say hit enter and if you want to access the same command again, can you do it? Normally what happens is when you work on CMD, what we'd get is let's say if I perform any operation here, example up again, this is not a command in Windows, but let's try. So when I say up and if I want to get the same command again, we just need to press up arrow, right? So when you say up arrow, you will get this. You know, when you work with IP config and you get this and again, if I want the same command, you can say enter. Just you just say up and enter. You get it. That's not the case with IDLE. In this case, if you want to access that, we don't have by default option. So what you have to do is you just need to go to options and then you have to click on configure IDLE. And here you need to click on keys. Now we need to find the history, right? So just scroll down to search for history. So it is your history previous. Now, by default, it will be, I guess, Alt P in your machine because I've changed it in my earlier session. If you want to change it, just click on that and select get new keys for selection. And here you can select the up arrow. So you can see we have up arrow. Click on OK and click on OK now. So if you want to access the last element or last command, you just say up arrow and you get the command. Now, of course, when you are new to Python, you will not be knowing this, but once you start working on it, you will be needing this command a lot. So this is how you find the previous command. I got some more questions, you know, after the video. So let's say if you reach here and in Windows, we have this command, this CLS. So when you say CLS, it clears the command. Now, that's not the case here, you know, so that's not the case in IDEAL. You cannot simply clear this screen. Even if I try, we don't have anything here. I guess you can write some script which works on Python shell but that doesn't work in IDLE. The only way you can do that is by closing IDLE and reopen it. Now if you have seen my videos, in my videos I have done that. So I was scrolling up. But I was not scrolling in ideally. So it was a animation effect. So when I was editing my video, I made sure that it goes up so that you can you can see those things normally. So the editing is done so that you can view it. So I have not scrolled on ideally. So as for my knowledge, it's not possible. Maybe there might be some hidden script. or some technique so if you know that let me know in the comment section so that it will be helpful for everyone so that's it that's how you get the previous command and that's how you that's that's the answer for your question about how to clear the screen so that's it everyone thank you so much for watching i hope you're enjoying my series let me know in the comment section so that's it bye