﻿1
00:00:01,200 --> 00:00:06,780
‫Now, let's start learning pythons syntaxes by performing some basic arithmetic operations.

2
00:00:12,340 --> 00:00:19,060
‫The most basic operation is addition of two numbers we can use, plus symbol to do that.

3
00:00:19,630 --> 00:00:26,330
‫So we will write two plus two and we will execute this cell by pressing alt or enter.

4
00:00:28,510 --> 00:00:31,060
‫You can see we are getting result as an output.

5
00:00:33,230 --> 00:00:35,650
‫Second, arithmetic operation is substraction.

6
00:00:36,500 --> 00:00:43,660
‫We can use minus symbol, so if it write five, minus two and execute it, we are getting the result

7
00:00:45,970 --> 00:00:47,440
‫Next is multiplication.

8
00:00:47,710 --> 00:00:49,390
‫We can use asterisk symbol

9
00:00:50,600 --> 00:00:56,500
‫To multiply two numbers, if we write three into four and execute it,

10
00:00:57,230 --> 00:00:59,110
‫We are getting twelve as our output.

11
00:01:01,010 --> 00:01:02,300
‫Next is division.

12
00:01:04,200 --> 00:01:06,490
‫We'll write five slash two.

13
00:01:07,790 --> 00:01:12,760
‫Now, to use power or exponential functions, we can use two asterisk symbols.

14
00:01:13,400 --> 00:01:16,490
‫So if I write five asterisk asterisk two.

15
00:01:18,010 --> 00:01:20,290
‫Means that we are squaring five.

16
00:01:21,220 --> 00:01:23,620
‫Next is Modulus or reminder function.

17
00:01:24,490 --> 00:01:27,730
‫It will return the remainder of the division.

18
00:01:28,420 --> 00:01:34,930
‫So if I write five modulus two, we are getting one as our result.

19
00:01:35,380 --> 00:01:38,470
‫So if we divide five by two, we get one.

20
00:01:38,560 --> 00:01:42,530
‫As a reminder, we can also use multiple operators.

21
00:01:43,330 --> 00:01:48,730
‫So I can write five into two plus four.

22
00:01:51,680 --> 00:01:56,180
‫If I execute this command, I will get 14 as a result.

23
00:01:57,440 --> 00:02:01,500
‫You can notice that Python is following the Boardmass rule. First

24
00:02:01,760 --> 00:02:03,380
‫It is multiplying 5 and 2

25
00:02:03,980 --> 00:02:06,740
‫Then it is adding 4 to that result.

26
00:02:09,290 --> 00:02:13,370
‫It is better to use parentheses while using multiple operators.

27
00:02:14,210 --> 00:02:21,020
‫So if we want to add two and four first and then multiply it with five, we can write five

28
00:02:21,560 --> 00:02:24,080
‫and in parenthesis we can write two plus four.

29
00:02:26,680 --> 00:02:33,370
‫You can see here we are first adding 2 and 4 which is 6, and then multiplying this number

30
00:02:33,460 --> 00:02:34,120
‫with the five.

31
00:02:34,270 --> 00:02:36,220
‫So the result is 30.

32
00:02:38,470 --> 00:02:42,910
‫When you are using multiple operators, it is always recommend to use parenthesis.

33
00:02:45,330 --> 00:02:52,320
‫We can also assign these values to variable so I can assign where one.

34
00:02:54,600 --> 00:02:55,430
‫Equal to 2.

35
00:02:58,130 --> 00:02:59,580
‫So now, my variable

36
00:02:59,630 --> 00:03:01,960
‫where one is containing a value two.

37
00:03:02,420 --> 00:03:06,260
‫If I just write where 1 and execute it, python will display it's value.

38
00:03:06,340 --> 00:03:10,160
‫Well, you can see now we are getting two as an output.

39
00:03:12,670 --> 00:03:17,980
‫We can also use arithmetic operators while defining the variable.

40
00:03:18,400 --> 00:03:26,910
‫So if I just change the value of var1 to our previous argument, that is five into two plus four.

41
00:03:32,510 --> 00:03:36,340
‫Our var 1 will now contain a value 14.

42
00:03:39,640 --> 00:03:42,680
‫You can also notice that we have replaced the value 2

43
00:03:42,880 --> 00:03:43,920
‫With Value 14.

44
00:03:44,500 --> 00:03:50,230
‫So if you re assign value to some variable, it will just replace that value.

45
00:03:52,210 --> 00:03:55,410
‫Now, python also supports comparison operators.

46
00:03:56,140 --> 00:03:59,890
‫So if I write five greater than two.

47
00:04:02,470 --> 00:04:03,510
‫The result is true.

48
00:04:05,590 --> 00:04:10,820
‫Similarly, it also supports less than less than equal to and more than equal to.

49
00:04:11,290 --> 00:04:17,470
‫So, for example, I can write three less than equal to

50
00:04:18,690 --> 00:04:21,720
‫2 the result should be false.

51
00:04:23,650 --> 00:04:25,750
‫And we are getting false as our output.

