1 00:00:01,010 --> 00:00:05,960 So we have we started this zoo pattern book from an icon the navigator. 2 00:00:06,470 --> 00:00:08,790 Now to create a new notebook. 3 00:00:08,930 --> 00:00:15,700 Click on this new button in the top right corner and click on python 3. 4 00:00:15,740 --> 00:00:24,230 This will open a new notebook in a new term. 5 00:00:24,240 --> 00:00:31,500 This is before you buy the notebook interface and notebook you write and run your codes in a small segments 6 00:00:32,160 --> 00:00:36,380 and these segments are called cells. 7 00:00:36,620 --> 00:00:42,500 Apart from executing your code the cells can also be used for commenting. 8 00:00:42,500 --> 00:00:48,160 And it is really helpful to make your code readable and easy to follow. 9 00:00:50,330 --> 00:00:51,200 To write the code. 10 00:00:51,200 --> 00:00:56,180 You just have to click on the cell for example to add two numbers. 11 00:00:56,180 --> 00:00:57,920 You can just write two plus two. 12 00:00:57,920 --> 00:01:02,390 So this is where you will write your codes to execute this code. 13 00:01:02,390 --> 00:01:04,940 Just press control enter 14 00:01:09,720 --> 00:01:15,560 so you can write to records in the cell and you will get the output just below. 15 00:01:16,260 --> 00:01:20,220 You can see for input we have an end. 16 00:01:20,880 --> 00:01:23,340 And for all the outputs we have out 17 00:01:26,100 --> 00:01:36,580 on the top you can see different menu items file contains general options like saving printing or renaming 18 00:01:38,770 --> 00:01:46,050 added content set related options like cards cell copy cell based cell or delete cell 19 00:01:48,830 --> 00:01:56,630 view contains interface related options and inserts contains option to insert new cells 20 00:02:00,520 --> 00:02:08,860 sense menu item contents execution related options and as the name suggests contains references and 21 00:02:08,860 --> 00:02:15,670 manuals on how to use your python notebook you can also find the list scrolls shortcuts from here. 22 00:02:22,970 --> 00:02:29,630 Now most of the options we are going to use are also available in the form of buttons. 23 00:02:29,720 --> 00:02:37,870 So suppose if I want to rename this file as lecture one I will do that by clicking on this file filing 24 00:02:37,960 --> 00:02:41,150 undated and just rename it to lecture 1 25 00:02:49,330 --> 00:02:50,530 to save this file. 26 00:02:50,620 --> 00:02:52,420 We can click on the save button 27 00:02:55,460 --> 00:03:03,120 it will automatically save your file in your default directory and next time you opened your python 28 00:03:03,120 --> 00:03:12,200 notebook you will be able to see this file in your default directory from Dubai the notebook homepage. 29 00:03:12,230 --> 00:03:17,490 There are also buttons to cut copy paste. 30 00:03:17,620 --> 00:03:21,310 We also have a button to execute our codes. 31 00:03:21,580 --> 00:03:31,620 So again if I if I click on my cell and click on print it will execute an. 32 00:03:31,700 --> 00:03:36,820 Now you can see this drop down menu is seen code. 33 00:03:36,890 --> 00:03:41,440 This means the cell we have selected is containing the code. 34 00:03:41,870 --> 00:03:50,120 If I want it to contain a comment I can change it to either draw on my long form writing if I change 35 00:03:50,120 --> 00:03:57,770 it to mark down or draw out Python cardinal will know that the sale the content of this particular cell 36 00:03:58,160 --> 00:04:04,250 is just for commenting and not execute the presence of this feature. 37 00:04:04,280 --> 00:04:11,560 Make a word code more readable and understandable so I will go ahead and change the format of this setting 38 00:04:11,560 --> 00:04:15,410 to M.D. which is Mondo. 39 00:04:15,560 --> 00:04:21,810 You can see when I'm changing my cell to mark down the input symbol goes away. 40 00:04:21,980 --> 00:04:29,540 There is no input symbol here and put symbols are present on the in the front of quotes. 41 00:04:29,660 --> 00:04:32,980 I can write anything in this MDL and by 10 groups. 42 00:04:32,990 --> 00:04:34,520 This as a command. 43 00:04:34,520 --> 00:04:36,370 So let's go ahead and write. 44 00:04:36,410 --> 00:04:37,640 This is a MDL 45 00:04:47,130 --> 00:04:51,780 Mal known cells also supports modern formatting. 46 00:04:52,070 --> 00:04:55,820 So if I want to give heading I can use bond symbol 47 00:04:58,570 --> 00:05:00,820 so will give a hiding hiding one 48 00:05:06,670 --> 00:05:07,940 if I execute this set 49 00:05:11,660 --> 00:05:19,460 you can see since I use bond symbol in front of this hiding one the fine for hiding one is in the hiding 50 00:05:19,560 --> 00:05:19,950 format 51 00:05:22,790 --> 00:05:27,920 we can also use my people found symbols to change their size. 52 00:05:27,920 --> 00:05:31,130 So if I use two symbols for heading to 53 00:05:37,690 --> 00:05:42,420 you can see heading to is slightly smaller than heading one. 54 00:05:42,430 --> 00:05:52,880 You can also use three four five or six bond symbol to change the size of the settings. 55 00:05:52,940 --> 00:05:59,170 You can also use esoteric symbols to give bootlegs. 56 00:05:59,420 --> 00:06:01,990 So if I write a strict. 57 00:06:04,430 --> 00:06:05,130 If I write. 58 00:06:05,130 --> 00:06:11,270 Bullet point this abstract symbol will be directly converted into a bullet so 59 00:06:21,050 --> 00:06:21,870 executed. 60 00:06:21,870 --> 00:06:28,760 You can see the stick symbols are now converted into bullet and we are seeing all the white points and 61 00:06:29,080 --> 00:06:35,700 crop and bullet points. 62 00:06:35,910 --> 00:06:38,730 There are multiple features for editing Mondo. 63 00:06:39,150 --> 00:06:45,170 You can Google it and if you want you can learn more about this for my things. 64 00:06:45,750 --> 00:06:46,850 I'll get no no. 65 00:06:46,890 --> 00:06:53,130 No not just for commenting your Python is not actually executing this since 66 00:06:55,750 --> 00:07:03,300 the next cell format is little ROIs similar to own but it does not support for my thing. 67 00:07:03,610 --> 00:07:05,200 So if you convert it to raw 68 00:07:09,020 --> 00:07:12,130 if you convert it to draw it will remain like this. 69 00:07:12,230 --> 00:07:17,020 You will not be able to get formatting out of this cells again. 70 00:07:17,060 --> 00:07:20,990 Roy's also for commenting and python will not executed 71 00:07:23,690 --> 00:07:26,890 code is the format in which we write our codes. 72 00:07:28,590 --> 00:07:34,420 And python will only execute cells that are among death squads. 73 00:07:34,530 --> 00:07:39,240 You can see the format for this cell is code. 74 00:07:39,480 --> 00:07:49,260 Therefore I can use my codes in this cell so if I write two plus two I can execute it either by clicking 75 00:07:49,260 --> 00:07:56,120 this round button or by pressing the shortcut key that is control enter. 76 00:07:56,260 --> 00:07:59,290 For now I will click on this red button. 77 00:08:01,730 --> 00:08:09,740 Similarly if I write 5 plus 3 this time I will lose control under control and there is a shortcut to 78 00:08:09,740 --> 00:08:12,260 run the cell to execute the same 79 00:08:15,610 --> 00:08:20,710 but most of the time we also want to enter a blank cell. 80 00:08:20,710 --> 00:08:22,480 Been in this cell. 81 00:08:23,230 --> 00:08:31,040 In that case I can use it and that instead of controlling that or can under will execute the cell. 82 00:08:31,060 --> 00:08:42,120 Also it will insert a blank cell just below the cell so right or enter it has executed the cell and 83 00:08:42,210 --> 00:08:47,530 it has inserted a new cell a new blank cell just below this cell. 84 00:08:48,810 --> 00:08:55,560 Another small point I want to tell you about cells is editable and known ended up with mode. 85 00:08:57,850 --> 00:09:04,430 So let's first insert a new cell now if you try to write anything. 86 00:09:04,430 --> 00:09:12,650 So if I write start occurred Academy nothing will happen because these cells are not editable right. 87 00:09:12,690 --> 00:09:14,440 No. 88 00:09:14,590 --> 00:09:22,560 You can also notice the color of the cell is blue the border around the cell is blue. 89 00:09:22,620 --> 00:09:33,850 This suggests that the cell currently is in non entity but for my a few press I'm dead you can see the 90 00:09:33,850 --> 00:09:39,120 cursor inside the cell and on the blue color has been changed to green color. 91 00:09:39,130 --> 00:09:47,680 Now you can write anything if I write a start decorating me you can see we are able to write this inside 92 00:09:47,680 --> 00:09:49,600 a cell. 93 00:09:49,600 --> 00:09:52,200 This mode is a readable mode. 94 00:09:52,270 --> 00:10:01,680 If I press escape you can see the color has been changed to blue and now we have entered a non editable 95 00:10:01,680 --> 00:10:08,760 mode and normally they will mode you can navigate through different cell and if you want to edit it 96 00:10:09,660 --> 00:10:16,740 you have to press enter and the cursor will appear inside the cell and the cell boundary will change 97 00:10:16,770 --> 00:10:25,960 to green color these two shortcuts of entering into a readable and non entry table mode are very important 98 00:10:27,100 --> 00:10:29,970 and it will lay a foundation for other shortcuts as well. 99 00:10:31,210 --> 00:10:39,580 So suppose if you want to change the formatting from code to modern you can put your cell into non readable 100 00:10:39,580 --> 00:10:51,780 mode so I will press escape and then I will press and M is a shortcut for modern formatting and you 101 00:10:51,780 --> 00:10:57,960 can see that the stereotype type has been changed from code to Mundo since. 102 00:10:57,990 --> 00:11:00,280 Right now I am in non editable mode. 103 00:11:00,390 --> 00:11:07,950 I can press VI to change the format of this cell to code. 104 00:11:08,080 --> 00:11:14,230 Now do I did the code I just have to press enter to enter into editable mode. 105 00:11:14,230 --> 00:11:23,680 Now again to go back to ON OUR do table press escape now I can use shortcuts touching this self automate 106 00:11:27,520 --> 00:11:33,040 if I press are I can change the format of this cell to roll and to switch back. 107 00:11:33,130 --> 00:11:41,210 I just have to press why this shortcuts are very handy when you are using Python and it will save a 108 00:11:41,210 --> 00:11:42,260 lot of pain for you 109 00:11:45,830 --> 00:11:46,650 again. 110 00:11:46,760 --> 00:11:52,940 Now the shortcut to insert new cell is just to enter into a non editable mode. 111 00:11:53,090 --> 00:12:03,280 Let's escape if you are in editable mode and place a evil insert a blank cell above your existing cell 112 00:12:04,690 --> 00:12:09,550 and similarly B will enter a cell below your existing cell 113 00:12:12,490 --> 00:12:22,280 so I want you to remember this sixth shortcut for stays and that to enter into editable mode of a cell. 114 00:12:22,280 --> 00:12:29,350 Second this escape to go into the non editable mode of the cell. 115 00:12:29,350 --> 00:12:35,150 Third is control and better to execute your selected cell. 116 00:12:35,170 --> 00:12:43,460 Fourth one is or should enter to execute your selected cell and entered a new blank cell below your 117 00:12:43,470 --> 00:12:43,880 cell. 118 00:12:45,630 --> 00:12:51,100 The fifth one is M. use of M and non-native table more. 119 00:12:51,170 --> 00:13:00,380 It will change the cell format from code to modern and the last one is via in the non editable mode. 120 00:13:00,380 --> 00:13:06,620 If you press way it will change the format of your cell from raw or marked down to code format. 121 00:13:09,340 --> 00:13:14,310 Similarly there is one more shortcut if you want to delete your cell. 122 00:13:14,350 --> 00:13:23,680 Just press BD in non editable mode actually delete the selected cell in the next lecture will cover 123 00:13:23,680 --> 00:13:25,560 some basic operations and Python.