1
00:00:00,590 --> 00:00:05,250
Hi, welcome back, asked by the media students.

2
00:00:05,770 --> 00:00:15,910
Serious in this lecture, we will discuss two of the requests or questions of our README students.

3
00:00:16,090 --> 00:00:27,010
The first question, right, a program that has a Dictionary of POCs name as KS and their prize as values,

4
00:00:27,280 --> 00:00:34,750
then Brent is the items in the dictionary and assorted orders and prompt the user to enter a name and

5
00:00:34,750 --> 00:00:37,950
check if it is present in the dictionary.

6
00:00:37,960 --> 00:00:44,990
If the name doesn't exist, then ask the user to enter pride and detail in the dictionary.

7
00:00:46,720 --> 00:00:49,590
So let's begin to conclude our program.

8
00:00:50,320 --> 00:01:00,010
Firstly, we will create a dictionary called Batak, which will has or contain book names as gays and

9
00:01:00,310 --> 00:01:08,070
prizes as values, both equal in curly bracket between two parentheses.

10
00:01:08,080 --> 00:01:09,940
We will add the name.

11
00:01:10,270 --> 00:01:20,500
The book names a column five comma B between two parentheses column 10.

12
00:01:20,830 --> 00:01:23,050
Comma between two.

13
00:01:23,050 --> 00:01:26,650
Parentheses C, column 15.

14
00:01:28,380 --> 00:01:40,900
Comma between two parentheses D column to any comma between two parentheses E colon twenty five.

15
00:01:41,070 --> 00:01:45,840
Then we ask the user to enter the name of the book he wants.

16
00:01:46,980 --> 00:01:54,450
So name equal aimbot between two bracket two parentheses and at between two.

17
00:01:54,450 --> 00:01:56,040
But the two parentheses.

18
00:01:56,460 --> 00:02:07,200
You want the book named Space close the second parentheses then if the name of the book is in vogue

19
00:02:07,200 --> 00:02:16,470
DECT so program will birth control flow and will form the next print orders if the name and book underscore

20
00:02:16,470 --> 00:02:27,330
dect dot case method best and if the name of the book isn't invoked so the program will ask for the

21
00:02:27,330 --> 00:02:35,550
price of the the user want else price equal aimbot between two brackets and two parentheses.

22
00:02:35,550 --> 00:02:43,750
What is the price of the book you want and leave space and leave his base before you close the second

23
00:02:43,750 --> 00:02:44,240
parenthesis.

24
00:02:44,310 --> 00:02:52,230
Then the program will add the name and the price of the scifi book by the user into pocket book between

25
00:02:52,230 --> 00:02:56,660
two brackets name Equal Price Finalist.

26
00:02:56,660 --> 00:03:04,710
The book will print book after adding the new book by the user's brain between two them bracket print

27
00:03:04,920 --> 00:03:08,760
in brackets sort of in bracket polka dot items.

28
00:03:09,300 --> 00:03:14,910
Items may close the second bracket, then close the first black.

29
00:03:14,920 --> 00:03:17,850
So let's try to run this program.

30
00:03:17,860 --> 00:03:27,750
The program asking me you want the book named AI so it will print the item we enter in the first so

31
00:03:27,750 --> 00:03:30,090
it will print the dictionary items.

32
00:03:30,090 --> 00:03:33,780
Let's start kernel and clear output.

33
00:03:35,330 --> 00:03:39,090
Yes, and run it again at.

34
00:03:39,650 --> 00:03:51,740
Asking me about the name of the book so I will add Z, which is not an architect, so the program will

35
00:03:51,740 --> 00:03:55,260
ask for the price of the book that I want.

36
00:03:55,490 --> 00:04:06,650
I will add 30 35 since the program finally branched out after adding the last item case and values,

37
00:04:06,650 --> 00:04:09,110
which is Z and thirty five.

38
00:04:10,040 --> 00:04:14,750
The second program we will discuss in this lecture or this video.

39
00:04:15,170 --> 00:04:19,760
Consider a scenario where our son is five ice cream every day.

40
00:04:20,490 --> 00:04:23,390
The price of ice cream is different.

41
00:04:23,540 --> 00:04:29,390
His mother pays the bill to the ice cream vendor at the end of every week.

42
00:04:29,390 --> 00:04:29,880
Right.

43
00:04:29,900 --> 00:04:35,900
I buy some programs that can generate the best for the ice cream and send to his mother.

44
00:04:36,140 --> 00:04:43,820
Firstly, we will create the ice cream class, which contain two attributes daily ice cream and price

45
00:04:44,060 --> 00:04:45,230
class ice cream.

46
00:04:45,890 --> 00:04:57,640
D.F. underscore, underscore and underscore underscore, which is that any method for open bracket itself

47
00:04:57,680 --> 00:05:05,080
and daily ice cream and price bracket and column self-doubt.

48
00:05:05,300 --> 00:05:11,330
Daily ice cream ekwall daily ice cream, self-doubt price, equal price.

49
00:05:11,780 --> 00:05:18,460
We will create another method to calculate the total price of every type of the ice cream.

50
00:05:18,680 --> 00:05:27,210
The total price itself then returns the daily ice cream multiplied by itself, the price.

51
00:05:27,440 --> 00:05:33,350
Suppose we have the quantity and the price of three types of the ice cream.

52
00:05:34,220 --> 00:05:40,790
Ice cream one, equal ice cream three and the five that eat in every day.

53
00:05:41,300 --> 00:05:46,220
And five is about ice ice cream to equal ice cream.

54
00:05:46,400 --> 00:05:52,000
One and seven ice cream three, equal ice cream, one and nine.

55
00:05:52,730 --> 00:06:01,870
Then we will print this object, not total price and end the brain function on the to order in the right

56
00:06:01,920 --> 00:06:02,200
order.

57
00:06:02,210 --> 00:06:03,620
We will collect them.

58
00:06:03,770 --> 00:06:12,880
As you see, after we run this school, we will get thirty one, which is the total cost of the prices

59
00:06:13,070 --> 00:06:16,310
of the ice cream consumed by this kid.

60
00:06:16,700 --> 00:06:25,730
But if we want to calculate the total price of the ice cream that gets consumed and in one week we will

61
00:06:25,730 --> 00:06:32,870
add multiply by seven to the total price to be G.F. total.

62
00:06:33,050 --> 00:06:44,450
But I self return self-doubt daily ice cream multiplied by self-doubt price multiply by seven and run

63
00:06:44,630 --> 00:06:45,440
this good.

64
00:06:45,740 --> 00:06:49,760
We will get two hundred and seventeen dollars.

65
00:06:50,420 --> 00:06:51,400
Thanks for watching.

66
00:06:52,190 --> 00:06:53,900
I hope you get all of that.

67
00:06:54,410 --> 00:06:56,360
See you next with you.
