1 00:00:00,360 --> 00:00:02,010 How did you find that second part? 2 00:00:02,460 --> 00:00:08,500 Well, when things seem difficult, I don't know if it's been difficult for you or not in programming. 3 00:00:08,790 --> 00:00:09,570 Break it down. 4 00:00:09,780 --> 00:00:13,670 It's the old expression, how do you eat an elephant one bite at a time? 5 00:00:16,120 --> 00:00:19,680 Function, get profits or maybe Keltec. 6 00:00:21,230 --> 00:00:21,800 Profits. 7 00:00:23,220 --> 00:00:26,880 This doesn't require any inputs because we're already using variables we have access to. 8 00:00:30,200 --> 00:00:34,130 Print profit is. 9 00:00:35,410 --> 00:00:44,470 Let's have our back slash open and close, and there's a start to add things so income minus expenses. 10 00:00:46,110 --> 00:00:54,270 So now that's really easy to call, we get our accounts dot, calc profit and if we run that. 11 00:00:59,070 --> 00:01:00,700 Why it's done it here. 12 00:01:01,170 --> 00:01:07,140 Profit is one over is one, yes, it is one because we have 13 and 12. 13 00:01:07,600 --> 00:01:10,110 If I had 16, we should get four. 14 00:01:11,600 --> 00:01:16,880 Playground's is a bit funny in where it puts the things at the site sorry, at the side here. 15 00:01:18,080 --> 00:01:20,930 I think when it does stuff like this, it shouldn't just say counts. 16 00:01:20,930 --> 00:01:22,490 It should give us the actual print. 17 00:01:22,490 --> 00:01:23,870 But that's just the way it works. 18 00:01:24,530 --> 00:01:32,570 But it is down here with Wolf and the profit is for OK, so that works well and you see how simple that 19 00:01:32,570 --> 00:01:32,750 is. 20 00:01:32,780 --> 00:01:34,520 So again, this is a lesson. 21 00:01:34,520 --> 00:01:37,790 If you're going to freelance, you'll get a really complicated sounding thing. 22 00:01:37,790 --> 00:01:40,460 But in reality, that's all it is. 23 00:01:41,120 --> 00:01:42,620 That's literally all it is. 24 00:01:43,340 --> 00:01:44,630 All right, let's move on.