1 00:00:00,570 --> 00:00:01,870 Well, did you do it? 2 00:00:01,870 --> 00:00:04,958 Let's look at how I solved the problem of catching both types of numbers. 3 00:00:04,958 --> 00:00:10,340 All right, so just to remind you, if we try going to our thing and 4 00:00:10,340 --> 00:00:14,020 we have something that's not, not an imager, 5 00:00:14,020 --> 00:00:18,790 then it errors because it can't convert that into a number. 6 00:00:18,790 --> 00:00:21,370 But let's see about turning this into something that takes ints, 7 00:00:21,370 --> 00:00:24,470 floats, you know, either one of those. 8 00:00:24,470 --> 00:00:25,110 Okay. 9 00:00:25,110 --> 00:00:26,700 So, what do we have? 10 00:00:26,700 --> 00:00:27,290 Well, first of all, 11 00:00:27,290 --> 00:00:31,990 we have this app route where we have ints and, you know, they're both ints. 12 00:00:31,990 --> 00:00:36,220 So, let's let's duplicate this and let's make them both floats. 13 00:00:38,580 --> 00:00:39,570 All right, and 14 00:00:39,570 --> 00:00:44,840 then our other option would be that number one is an int and number two's a float. 15 00:00:45,840 --> 00:00:49,860 Or that number one is a float and number two is an int, right? 16 00:00:49,860 --> 00:00:53,210 So we have int int, float float, int float, and a float int. 17 00:00:53,210 --> 00:00:54,688 Let's let's give these a test. 18 00:00:54,688 --> 00:00:58,726 All right. So first of all, let's do 2.5 plus 5. 19 00:00:58,726 --> 00:01:01,350 7.5, great. 20 00:01:01,350 --> 00:01:03,397 2.5 plus 5.5. 21 00:01:03,397 --> 00:01:05,599 8.0, great. 22 00:01:05,599 --> 00:01:08,302 [BLANK_AUDIO] 23 00:01:08,302 --> 00:01:10,137 And there we go. 24 00:01:10,137 --> 00:01:11,209 All right, so, and 25 00:01:11,209 --> 00:01:16,160 let's just, let's make sure that it still works with just two ints, and it does. 26 00:01:16,160 --> 00:01:18,350 All right, four routes on one view. 27 00:01:18,350 --> 00:01:22,390 That's kind of crazy, but that should cover everything. 28 00:01:22,390 --> 00:01:26,100 Creating routes for your views is a major part of working with basic Flask, but 29 00:01:26,100 --> 00:01:29,130 there's actually a whole lot more that we can do with this framework. 30 00:01:29,130 --> 00:01:29,840 In our next stage, 31 00:01:29,840 --> 00:01:32,750 we'll take a look at rendering templates and serving static files.