1 00:00:00,240 --> 00:00:05,970 Soldiers in this room, we're going to talk about the variables, so these variables, memory locations 2 00:00:05,970 --> 00:00:12,960 you can store some content in way was suppose that I want to calculate the pivot, which is controllable. 3 00:00:13,920 --> 00:00:20,640 Now, if we want to, uh, use that word again, we need to rate the three point one four one, something 4 00:00:20,640 --> 00:00:22,710 like that, because that's very often are. 5 00:00:22,780 --> 00:00:23,840 You can return to the baseline. 6 00:00:24,120 --> 00:00:32,530 So it's very, uh, not nice to use the traction because we need to remember in every part of our code. 7 00:00:32,550 --> 00:00:39,780 So instead of that, we can assign that value to a variable, etc. and we can use that by variable anywhere 8 00:00:39,780 --> 00:00:43,130 in our code or a calculating area circle, etc.. 9 00:00:43,980 --> 00:00:53,640 So in, uh, partial the variables that it's like shadows grouping and the people are you need to say 10 00:00:54,480 --> 00:01:02,190 here is equal two and you need to ask, you need to specify what type, integer string, etc.. 11 00:01:02,370 --> 00:01:05,940 We just want to assign that, let's say high. 12 00:01:06,750 --> 00:01:09,630 And now I'm going to print this. 13 00:01:10,170 --> 00:01:10,590 Right. 14 00:01:11,700 --> 00:01:12,090 Right. 15 00:01:12,150 --> 00:01:12,900 I'll put. 16 00:01:15,400 --> 00:01:17,100 Da, da, da. 17 00:01:17,250 --> 00:01:21,280 You sort of see this under this group. 18 00:01:25,580 --> 00:01:29,980 All right, now let's close this one and open this again. 19 00:01:32,900 --> 00:01:41,050 But due to some memory issues, I have used the Dorottya before recorded SURIEL, so that's so. 20 00:01:43,320 --> 00:01:45,040 So now let's go around on this. 21 00:01:45,430 --> 00:01:51,840 As you can see, first hurdle, OK, let's remove the hurdle and let's run this. 22 00:01:51,850 --> 00:01:58,450 You can see the highest print because the contents right now extend this to an integer. 23 00:02:00,040 --> 00:02:01,880 So let's say this and run this. 24 00:02:02,410 --> 00:02:04,720 So now you can see finally here. 25 00:02:08,020 --> 00:02:13,360 So you can also assign some 14. variables here that certain to do. 26 00:02:15,800 --> 00:02:19,060 And now if you run the script, you can see the actual value of this. 27 00:02:19,240 --> 00:02:22,920 By now, you can use this story anywhere in your cholerae. 28 00:02:23,000 --> 00:02:24,560 Calculating the areas are correct. 29 00:02:25,810 --> 00:02:33,340 So there is no explicit declaration of this very interesting character, etc. It automatically assigns 30 00:02:33,490 --> 00:02:35,580 the value to this website. 31 00:02:36,100 --> 00:02:42,850 So if you want to, uh, declare explicitly you need to sell square brackets. 32 00:02:43,300 --> 00:02:45,490 I need to declare the type integer. 33 00:02:45,490 --> 00:02:47,050 And you need to specify here. 34 00:02:48,220 --> 00:02:53,070 Now, let's say 22 and we are declaring integer 32. 35 00:02:53,620 --> 00:02:56,980 So the right number will be converted into digit. 36 00:02:56,980 --> 00:03:02,020 And then the sentiment expressed, as you can see now, we got the candidate. 37 00:03:02,530 --> 00:03:04,930 So now let's go to the word with seven. 38 00:03:04,960 --> 00:03:07,660 We get the fourteen point three billion for now. 39 00:03:07,840 --> 00:03:16,480 Go on this and we'll get only three because it's around us that the small part fraction, but it will 40 00:03:16,480 --> 00:03:20,020 be only the, uh, main integer, but that is three. 41 00:03:20,860 --> 00:03:28,290 So in this way, you can convert any, uh, number to this, uh, integer can also convert to the restring. 42 00:03:29,140 --> 00:03:31,830 So in the next, you do see what the take in the user. 43 00:03:32,590 --> 00:03:34,930 So user input will be in the format. 44 00:03:34,930 --> 00:03:40,820 If any user enter the numbers eight, it will be stored adjusting format. 45 00:03:40,840 --> 00:03:41,690 So you need to convert. 46 00:03:42,430 --> 00:03:46,440 So it's going to run this and we see that is in disarray. 47 00:03:47,440 --> 00:03:52,840 And we can also, uh, access the methods of this variable we need to set up. 48 00:03:55,980 --> 00:04:02,760 OK, not now you can see these are the functions you can operate compared to you can compare to another 49 00:04:02,760 --> 00:04:05,860 no equals and get the tape. 50 00:04:05,880 --> 00:04:09,840 So the tape is returned to the what is the table that we reviewed. 51 00:04:11,280 --> 00:04:16,620 So now if you run this now, as you can see. 52 00:04:16,620 --> 00:04:18,980 No, it's, uh, this is output. 53 00:04:19,170 --> 00:04:20,280 It's rumold this one. 54 00:04:23,860 --> 00:04:32,170 So now you are essentially to be said to be partial interpreter should access this very good to get 55 00:04:32,170 --> 00:04:32,830 the word right. 56 00:04:32,840 --> 00:04:40,330 So it should be said through public means anyone can access this word, but no name is indeed attached 57 00:04:40,330 --> 00:04:41,110 to it. 58 00:04:41,110 --> 00:04:44,530 Is that in this right, we are explicitly defining this as integer. 59 00:04:44,800 --> 00:04:48,010 And you can see this is the system that we are not entitled to. 60 00:04:48,040 --> 00:04:49,540 So this is that value. 61 00:04:50,230 --> 00:04:52,690 So I am not that much net. 62 00:04:52,720 --> 00:04:57,610 So you can see these are the class, that integer there is not value. 63 00:04:59,650 --> 00:05:07,090 So this is basic about the variable you can also string. 64 00:05:11,020 --> 00:05:14,530 And we can see we got this could this is the standard of the. 65 00:05:17,610 --> 00:05:23,610 And you may expect some more, uh, functions for the thing, so you got the crown, you can get the 66 00:05:23,610 --> 00:05:29,400 land and touching, you get the output because this is only one card, right. 67 00:05:29,790 --> 00:05:38,190 So like this, where you can access the, uh, but it's also so remaining at our normal method, you 68 00:05:38,190 --> 00:05:39,980 can, uh, explode. 69 00:05:40,650 --> 00:05:43,530 So another thing I want to show you is get rid of. 70 00:05:46,710 --> 00:05:49,260 So this variable, this variable. 71 00:05:51,780 --> 00:05:58,070 I restore all the user defined variables and the different variables to run this. 72 00:06:00,120 --> 00:06:09,390 Now, as you can see here, the name and the value, so I just expand this one so you can see the idea 73 00:06:09,390 --> 00:06:11,220 here because we have defined you right? 74 00:06:11,300 --> 00:06:15,210 You string string tight and you wear these eight. 75 00:06:17,850 --> 00:06:22,740 And the arguments, you do not give any arguments and you can see these are those different variables 76 00:06:23,850 --> 00:06:33,100 and you can also bring their daughter home, all you need to say is you to sit down and hit or you meet. 77 00:06:33,120 --> 00:06:40,950 So you can see here the Porsche is automatically, uh, doing some intelligence and suggesting these 78 00:06:40,950 --> 00:06:44,880 variables are there in our system back in the home. 79 00:06:44,880 --> 00:06:52,290 And if you don't get the value of that variable, so let's go upwards and see what other variables are 80 00:06:52,290 --> 00:06:52,820 interesting. 81 00:06:53,610 --> 00:06:58,260 You can see the information and input, uh, machsom. 82 00:06:58,340 --> 00:07:06,060 And so you can put the maximum resources as four zero nine six and you can see the other side of the 83 00:07:06,060 --> 00:07:06,540 wall. 84 00:07:06,850 --> 00:07:09,220 Uh, this is the greatest thing. 85 00:07:09,240 --> 00:07:13,590 And it is, uh, eighty six. 86 00:07:15,560 --> 00:07:23,390 And then you can see the piece from the partial version from where DISPOSER has been executing and you 87 00:07:23,390 --> 00:07:27,280 can also see PWP print to the right. 88 00:07:27,470 --> 00:07:36,070 So this is our work there for now because he uses it so you can access these variables using the sun. 89 00:07:36,110 --> 00:07:42,760 But if you create another variable, then this will be stored in this, uh, variable information. 90 00:07:43,730 --> 00:07:46,550 So I'm going to show you another way that is. 91 00:07:50,950 --> 00:07:52,760 So that is new variable. 92 00:07:52,780 --> 00:08:04,150 So I am going to say the cost too high so you can take the variable rate, that variable, but you can 93 00:08:04,150 --> 00:08:09,130 also, uh, create new Wellsville using new variable. 94 00:08:11,980 --> 00:08:14,240 You numerable, and then you're going to do the name. 95 00:08:17,670 --> 00:08:23,640 It to be and then to set the very well you do Hollowell. 96 00:08:27,820 --> 00:08:29,620 So now I get valuable. 97 00:08:32,190 --> 00:08:42,340 If you go up, you can see the value of be here, Hollowell, you can access this as you can also get 98 00:08:42,350 --> 00:08:42,900 valuable. 99 00:08:43,070 --> 00:08:46,710 You can also get the variable of particular availability. 100 00:08:47,180 --> 00:08:49,810 I want to get only the value of beef. 101 00:08:50,150 --> 00:08:58,760 I want to be so good variable with this number so you can see the name and the value of the where it 102 00:08:58,760 --> 00:09:00,250 will be here, which is Hollowell. 103 00:09:00,830 --> 00:09:09,290 So in a similar way, you can also get the she can also change this, uh, variables option, variable 104 00:09:09,710 --> 00:09:11,490 value using this set variable. 105 00:09:12,210 --> 00:09:12,440 Yeah. 106 00:09:13,940 --> 00:09:21,410 Uh, we need to specify what we're willing to change, let's say, a year and then to specify the value 107 00:09:21,770 --> 00:09:23,720 of what we want to change to. 108 00:09:24,260 --> 00:09:25,260 It's, uh. 109 00:09:25,670 --> 00:09:26,020 Um. 110 00:09:28,260 --> 00:09:32,800 Thank you, get where will year and then you get over your fear. 111 00:09:34,440 --> 00:09:38,650 But we does not get changed because we do not change the beat in this way. 112 00:09:38,670 --> 00:09:43,830 You can also get variable set variable and you can create a new variable using this new way. 113 00:09:44,490 --> 00:09:51,420 So these are the main candidates that are invoker when we are creating this, uh, right. 114 00:09:51,420 --> 00:09:52,250 In this index. 115 00:09:52,440 --> 00:09:58,680 So this is the best way for anyone to just assign a value to the variable. 116 00:10:01,110 --> 00:10:03,930 So I think that's all for the variables. 117 00:10:04,200 --> 00:10:08,100 And I actually do see the how to take user input from the console.