﻿1
00:00:01,200 --> 00:00:06,780
‫Now let's start learning pythons in Texas by performing some basic arithmetic operations

2
00:00:12,340 --> 00:00:16,600
‫the most basic operation is addition of two numbers.

3
00:00:16,600 --> 00:00:25,330
‫We can use less symbol to do that so we will write two plus two and we will execute this cell by pressing

4
00:00:25,550 --> 00:00:28,210
‫either anchor.

5
00:00:28,480 --> 00:00:36,210
‫You can see we are getting dessert as an output the second automatic operation is subsection.

6
00:00:36,470 --> 00:00:46,360
‫We can use minus some but so if we write five minus two and execute it we are getting that is a next

7
00:00:46,370 --> 00:00:47,610
‫is multiplication.

8
00:00:47,710 --> 00:00:55,520
‫We can use a strict symbol multiply two numbers fit a three into four.

9
00:00:55,840 --> 00:00:56,910
‫Things is a good day.

10
00:00:57,210 --> 00:01:00,820
‫We are getting well as our output.

11
00:01:01,020 --> 00:01:10,880
‫Next is division we'll write five slash to now to use power or exponential functions.

12
00:01:10,880 --> 00:01:13,250
‫We can use to restrict symbols.

13
00:01:13,400 --> 00:01:21,190
‫So if I write five as strict as strict two means that we are squaring five.

14
00:01:21,200 --> 00:01:24,110
‫Next is modulus or remainder function.

15
00:01:24,490 --> 00:01:28,430
‫It will return the remainder of the division.

16
00:01:28,430 --> 00:01:34,970
‫So if I write five modulus two we are getting one as our result.

17
00:01:35,390 --> 00:01:38,500
‫So if we divide 5 by 2 we get one.

18
00:01:38,540 --> 00:01:48,740
‫As a reminder we can also use multiple operators so I can write five in total plus for

19
00:01:51,690 --> 00:01:53,030
‫if I execute this command.

20
00:01:54,390 --> 00:02:02,670
‫I will get 14 as a result you can notice that Python is falling the board must rule first it is multiplying

21
00:02:02,670 --> 00:02:14,220
‫five N2 then it is adding four to that result it is better to use parentheses while using multiple operators.

22
00:02:14,220 --> 00:02:22,680
‫So if we want to add two and forward first and then multiply it with five we can write five and in parenthesis

23
00:02:22,770 --> 00:02:26,480
‫we can add two plus four.

24
00:02:26,680 --> 00:02:34,120
‫You can see here we are first adding the 1 4 which is 6 and then multiplying this number with the 5.

25
00:02:34,270 --> 00:02:42,880
‫So the result is 30 when you are using multiple operatives it is always the command to use parenthesis

26
00:02:45,330 --> 00:02:48,040
‫we can also assign these values to variable.

27
00:02:49,290 --> 00:03:02,900
‫So I can assign that one equal to do so now my variable where one is containing the value to if I just

28
00:03:02,900 --> 00:03:06,440
‫state veteran and executed by 10 will displayed.

29
00:03:06,450 --> 00:03:17,330
‫Well you can see now we are getting to as an output we can also use automatic operators while defining

30
00:03:17,330 --> 00:03:18,410
‫the variable.

31
00:03:18,410 --> 00:03:26,900
‫So if I just change the value of 1 to our previous argument that is 5 and 2 two plus four

32
00:03:32,620 --> 00:03:33,210
‫our.

33
00:03:33,270 --> 00:03:39,180
‫Radwan will now contain a value for being.

34
00:03:39,640 --> 00:03:44,110
‫You can also notice that we have replaced the value 2 with value 14.

35
00:03:44,500 --> 00:03:50,250
‫So if you do we assign value to some variable it will just replace that value.

36
00:03:52,210 --> 00:03:55,900
‫Now Python also supports competition operators.

37
00:03:56,140 --> 00:04:03,670
‫So if I write five greater than to that is there it is true.

38
00:04:05,590 --> 00:04:11,220
‫Similarly it also supports less than less than equal to and more than inquiry tool.

39
00:04:11,320 --> 00:04:19,820
‫So for example I can write three less than equal to two.

40
00:04:20,010 --> 00:04:25,750
‫That result shouldn't be false and we are getting false as our output.

