 Hey, what's going on guys Rudlinal here and today we're looking at some more Python in fact We just finished installing idle our new our new code editor in that last tutorial So now we're gonna be playing around with it just a little bit You can go ahead and open up the program open up idle if you're running Windows You might want to use your start menu look for the program idle It should be under Python that folder and yada yada yada if you're on Linux You can just look for the application like that desktop the shortcut if you have it on that sort of thing Or you can just start it up on the command line with idle. I am fact. I'm running unity So I'll just type in idle there and boom it will pop right up So now I want you guys to be looking at the menu items So you can see file up at the top you can see edit the bog options windows all those all these sort of things and Let's see what they can do I'm gonna try a new window and this is normally where you would be writing new Programs and new software if you were actually writing in idle The original window that you see pop up all most of the time when you run idle by default is the Python shell It's a little interactive shell where you can type in Python commands one by one and it will execute them While you're doing your thing and that's kind of nice It's really convenient if you want to just experiment with something and then you're done But back on this little New window here you can see some other options you have almost all the exact same for file But for edit you can you can look for things you can just find if you're trying to find a certain function or certain Certain keyword or certain sort of thing inside your program if you have a really hefty thing You can use regular expressions if you guys know what those are if you don't I'm probably gonna cover those eventually You can see to match the case whether it's a capital I or lowercase I the whole word with you wrapping around yada yada yada So that's really convenient You can look for things again. You can look for selections You can look for things in different files replacing is kind of like fine But it just replaces things you can you still have that regular expressions ops in there Go to line should be convenient if you have a really really hefty in like a long program I don't suggest that I would try like importing different Modules and files and that sort of thing But maybe you don't do that who knows and you just have that functionality if you need it Show call tip is rather convenient and we can use that if we are running a sort of function So if we try actually, let's look at some other things first If you look at show completions if I go back to my old one here if you do control space You can see all these options that are like viable Things you'd be able to use in that circumstance right where your cursor is So I am actually going to use one called pow, which is a normal function that would just input a number to Input a number to it that power the certain things that you pass to it So you're gonna since this function you can just open up to parentheses. That's the way you would normally type it I can get the more detail on that if need be and that's definitely something in a future video But if you look at it, you can see that you don't really know what you might be have to be typing in here So if you do control backslash It'll show that a little call tip or what the thing is that you might need to help with when you if you just Need a tip when you're calling a function hence the name show call tip So we need a first argument of what we're gonna be raising the power of let's say two and then it's raised with the power of four So you can see that X there and you can see why there and Z is optional That's what those two surrounding brackets mean, but that is a whole not the toiling itself. So you got those That's awesome. Now if you look at show surrounding parentheses or show surrounding parents if you if you're inside a function Little thing if you do control zero, it'll show just for a short moments This is the ground that it covers this this parentheses matches up with that other parentheses So you have those that little pair there. That's great Now what I'm going to show you now is a little bit of a big thing if I don't want to save that actually But if we open up this you might not be able to do this because you might not have any Python code to begin with but if I open up Python and then I just Open my own open up a little script here that I've written myself You can see that the color and the the white space The way things look and idle is almost really kind of elegant. It looks good. It's it's almost pretty It might depend on your personal opinion It might depend on your style But if all these colors you absolutely hate you just think oh man I'd really like a different color for a certain keyword or that sort of thing You can go up to options and you can configure idle and this lets you choose a font This lets you choose whether it's bold or not You can change the size of the fonts if you need to if you need to make it a little bit bigger You always have that option. I'll try it on 12 and see now you can you can tell it's pretty big I'm gonna change that right back because I prefer small the more you can fit on the screen the better So I'm just gonna move these back over in case you guys need to look at that little section over there And we'll get back to configuring So now that you have this option you can change the font I suggest mono space anything that takes up the same amount of space for any single character If you want to do something like aerial I suppose you can But I don't really recommend it I'm gonna stick with cure your 10 pitch just because I think that looks good Indentation with this is how big that your indents are like your tab key I'm gonna keep it as four spaces because that's a Python standard Highlighting this is where you can change some colors. This is kind of fun They can if you click on what you want to change you can choose up like these comments here You things that would normally turn up each yellow or blue Strings that would form up as green that you might not you might not know all these terms at first But I will cover them very soon But you were still you can you have the option to change these things is exactly what I'm saying here you can save these sort of themes and I don't really plan on doing it But you can just choose the color to whatever you want you have all these options here You can type in a hexadecimal value if you want to and yeah, it's really kind of convenient You're going you can go into keys and you can set your own custom key bindings Or you can do any sort of command that you that Python will recognize like in the actions things that it might know or might not know end of file find again I myself haven't played with these options too much But they are here in case you ever need them And then general you can set these different things and that's kind of what I was getting it earlier If the start of preferences once you run the program You can decide whether it runs this edit window the one that you saw back here Or the shell window where you'd be able to type in the custom commands and well not so much the custom commands But you'd be able to interact with it at Runtime and that sort of thing at the start of run like if you Actually when you autosave if you run a program that you're editing in idle You have to save it before you run it because Python the interpreter needs to know that this is the same file before you do things So if you can you can prompt to save the file or you can just completely disregard it whatsoever But it does have to autosave no matter what you do when you save it You can decide how big the window is when you start it up You can decide some character encoding if you need to and that sort of thing So that's kind of convenient and it's something you can mess around with if you ever feel the need to or you just want to make your editor Something more that it feels more easy to use for you. You can make it your own home. So Get comfortable and get acquainted and that sort of thing Windows you can just switch back and forth between the Python shell and the things that you have open currently within idle and help You can just check out exactly what you're using you can check out idle what it really is You can see things where you might need to talk to other people if you need help with something You have the version the idle version the tk version the tk is the graphic user interface They're just using to run the program that sort of thing But we'll go into that later And then you can go into help for idle These are sort of command things and what everything does in a more detailed Sort of thing that I've been able to do so I suggest you look through this if you ever feel the need to But I've just tried to do a quick rundown of what it is that you have the option to do here And yeah, that's it's a pretty hefty. It's a it's a hefty read But they do offer tips it looks like so you can do a lot of really cool stuff Now if you go into Python documents This is grand. This is where you're gonna probably want to spend most of your time This will open up a web browser where you'll be able to look at New things in Python you can look at things that you can do with Libraries or other other things you can import into your language to have more functionality and more extensibility You can look at syntax and the things that you might need to learn or the certain keywords that it might have How to set things up how to do certain things in the code And even a tutorial so you can go ahead and get started with things that you might find interesting And if you in case you need like a text way to be able to read things You have that option and it's like accessible right there from idle and that's pretty convenient You can see what's new in the version you can see as much as you feel like you might need to so I really recommend you Explore and see what they have here in this documentation There are many of times when I would just try to Google something that I know I can do in Python I just get redirected right back here So I wish I myself wish that I was more acquainted with this little index this little this little glossary here, but There's plenty of great things Like hidden in these pages, so I really recommend you Oh, that's cool. I didn't know you could do that you can hide the little menu there But yeah, I really recommend that you look through this if you ever feel the need to so it's there in case you need it Close right out of that and yeah Python code is beautiful. It uses a lot of white space and make sure to look thing make sure That it has white space and it's clean So depending on how you want to program you can program exactly how you feel like you need to if you want to make things cluttered You can do that if you want to space things out and give yourself some room to think you can do that and Yeah When you look at the colors you can look at commands you can do and things that you can run with Inside idle. I really recommend you check out these commenting and uncommenting regions You can tab things, but that's a little bit more talk for a later tutorial. So yeah Thank you so much for watching guys. I hope this I hope this kind of helped I hope you were able to look at things you might not have known about in idle beforehand especially if this is your first time running it and When you're writing code if you do such you're gonna be able to have these little commands these little techniques They're gonna help you while you're writing your stuff. So thanks again guys. See you in the next video