1 00:00:00,700 --> 00:00:07,510 If you want to get some recommendations with regards to spacing and other best practices, do a search 2 00:00:07,510 --> 00:00:14,350 for Python Pep eight in Google and this gives you information about how you should be writing code in 3 00:00:14,350 --> 00:00:15,130 Python. 4 00:00:15,940 --> 00:00:23,950 This is the style guide for Python code and they talk about indentation and we told to use four spaces 5 00:00:23,950 --> 00:00:25,660 per indentation level. 6 00:00:26,810 --> 00:00:30,500 So if you want any recommendations about how you should write code. 7 00:00:31,460 --> 00:00:33,890 Have a look at the style guide. 8 00:00:34,730 --> 00:00:38,720 One of the questions that often comes up is string quotes. 9 00:00:39,050 --> 00:00:41,870 Should you be using single or double quotes? 10 00:00:43,230 --> 00:00:48,420 In this PPIP guide, we told that single and double quotes are treated the same. 11 00:00:48,930 --> 00:00:51,510 The PEP doesn't make a recommendation for this. 12 00:00:51,600 --> 00:00:54,530 You should simply pick a rule and stick to it. 13 00:00:55,790 --> 00:01:01,940 So in other words, either use single quotes or double quoted strings when a string contains single 14 00:01:01,940 --> 00:01:09,110 or double code characters, however, use the other one to avoid back slashes to improve readability. 15 00:01:10,530 --> 00:01:15,000 In other words, in this example with my python range. 16 00:01:17,040 --> 00:01:19,290 I'm using single quote characters. 17 00:01:19,770 --> 00:01:27,300 If you actually want to quote the word hello as if you're quoting someone saying something like this. 18 00:01:28,370 --> 00:01:30,110 Then use the other. 19 00:01:31,110 --> 00:01:33,360 Quotation within your string. 20 00:01:36,190 --> 00:01:40,030 So python three, python three range. 21 00:01:40,420 --> 00:01:41,170 Notice we see. 22 00:01:41,170 --> 00:01:41,620 Hello. 23 00:01:41,620 --> 00:01:42,730 Like this. 24 00:01:43,540 --> 00:01:44,710 If however. 25 00:01:46,150 --> 00:01:46,990 I did. 26 00:01:48,310 --> 00:01:53,320 Thus we would have a problem in our code. 27 00:01:53,770 --> 00:01:57,820 So if I try to run that, we're getting an error. 28 00:01:58,180 --> 00:02:02,830 If I wanted to keep on using single quotes. 29 00:02:03,820 --> 00:02:09,280 I'd have to do this to indicate that it's actually what I want. 30 00:02:10,979 --> 00:02:13,620 And that works or. 31 00:02:14,900 --> 00:02:18,020 I could do what Pep eight says. 32 00:02:20,680 --> 00:02:27,940 And use a double quotation marks to indicate that this hello is actually within a quote. 33 00:02:30,570 --> 00:02:31,680 Run that again. 34 00:02:31,680 --> 00:02:33,480 And that once again works. 35 00:02:36,020 --> 00:02:39,410 So the moral of the story is be consistent.