1 00:00:00,460 --> 00:00:04,490 So Python actually gives us a text editor that we can use as well. 2 00:00:04,490 --> 00:00:06,666 It's not the best text editor around and 3 00:00:06,666 --> 00:00:11,210 I recommend that you use something more substantial like Sublime Text or PyCharm. 4 00:00:11,210 --> 00:00:14,140 But if you're just starting out it's okay. 5 00:00:14,140 --> 00:00:17,570 So in your applications folder there should be a new folder that's called 6 00:00:17,570 --> 00:00:20,950 Python 3.5, or 3.4, or whatever. 7 00:00:20,950 --> 00:00:24,940 And inside there will be this little thing that's called IDLE. 8 00:00:24,940 --> 00:00:27,930 And IDLE is the editor that we're going to use. 9 00:00:27,930 --> 00:00:29,590 It's an okay way to play around with the language. 10 00:00:30,700 --> 00:00:32,960 We're just gonna double click IDLE. 11 00:00:32,960 --> 00:00:37,220 And for me it pops up on the other screen and this is what IDLE looks like. 12 00:00:37,220 --> 00:00:39,520 Super duper fancy, right? 13 00:00:39,520 --> 00:00:42,640 So by default it opens up a shell window. 14 00:00:42,640 --> 00:00:48,070 So inside here you do things like print("hello world") and 15 00:00:48,070 --> 00:00:48,880 it prints out hello world. 16 00:00:48,880 --> 00:00:52,070 This is just like running Python in your terminal. 17 00:00:52,070 --> 00:00:55,030 Probably not the kind of thing you're gonna want to do all the time. 18 00:00:55,030 --> 00:00:58,300 So we're gonna go to File, and we're going to go to New File. 19 00:00:58,300 --> 00:01:02,570 And that gives us, well, a new file. 20 00:01:02,570 --> 00:01:05,240 IDLE doesn't give us line numbers, anything like that. 21 00:01:05,240 --> 00:01:09,950 Down here in the corner, we get line and column, so you can see, no, I hit 80, 22 00:01:09,950 --> 00:01:12,130 but that's really kind of about it. 23 00:01:12,130 --> 00:01:14,930 There's not a whole lot here, as you can see. 24 00:01:14,930 --> 00:01:16,970 If you look in preferences, 25 00:01:16,970 --> 00:01:18,570 there's a little bit of stuff you can poke around with. 26 00:01:18,570 --> 00:01:21,460 If you wanna change your font, make it a little bit bigger. 27 00:01:22,960 --> 00:01:24,390 I generally prefer a bigger font. 28 00:01:25,710 --> 00:01:26,840 Then you can do that. 29 00:01:26,840 --> 00:01:29,620 You can change your highlighting scheme if you want. 30 00:01:29,620 --> 00:01:32,550 You can change which keys do what thing. 31 00:01:32,550 --> 00:01:34,580 And you can tell it if you want an edit window, 32 00:01:34,580 --> 00:01:38,930 which is the text editor window, or a shell window and things like that. 33 00:01:38,930 --> 00:01:43,740 So you can give it some rules on things you want it to do, but you don't have to. 34 00:01:43,740 --> 00:01:46,600 So there's not a whole lot. 35 00:01:46,600 --> 00:01:52,095 IDLE's kind of underpowered, but you know we could do like, 36 00:01:52,095 --> 00:01:56,650 for num in range(10), print(num ** 2). 37 00:01:58,060 --> 00:02:01,750 And we hit Command S, it's gonna ask us where to save it. 38 00:02:01,750 --> 00:02:05,900 We can also go up here to Run, and say Run Module. 39 00:02:05,900 --> 00:02:07,690 And it's gonna ask us where to save it. 40 00:02:07,690 --> 00:02:13,450 And let's just say idle_test, and we'll save that. 41 00:02:13,450 --> 00:02:15,500 And we run it and it runs it in our shell over here. 42 00:02:15,500 --> 00:02:19,030 And so here's our squares from zero through nine.. 43 00:02:19,030 --> 00:02:23,950 So it's nothing super duper complex is it? 44 00:02:23,950 --> 00:02:30,230 We save it, we can run it with F5, anytime you press F5 it runs it all over again. 45 00:02:30,230 --> 00:02:33,880 Now it's kinda cool though, I mean it's kinda nice just having this. 46 00:02:33,880 --> 00:02:35,250 But like I said it's not the best editor. 47 00:02:35,250 --> 00:02:39,920 I'll put links to other popular Python editors in the teacher's notes. 48 00:02:39,920 --> 00:02:44,570 And look out for a workshop on PyCharm coming up, really soon. 49 00:02:44,570 --> 00:02:46,370 So for right now though, I am going to go ahead and quit IDLE.