From bdf156dd776fb1b3940d0807a2e14eeb75dd8b9b Mon Sep 17 00:00:00 2001 From: Damian Herfkens Date: Thu, 29 Aug 2019 18:29:45 +0200 Subject: [PATCH] Changes a few things in some files, to fit better or to correct grammar. --- .vs/ProjectSettings.json | 3 +++ .vs/slnx.sqlite | Bin 0 -> 90112 bytes basics/editor-setup.md | 5 +++-- basics/getting-started.md | 6 +++--- basics/variables.md | 5 +++-- 5 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .vs/ProjectSettings.json create mode 100644 .vs/slnx.sqlite diff --git a/.vs/ProjectSettings.json b/.vs/ProjectSettings.json new file mode 100644 index 0000000..f8b4888 --- /dev/null +++ b/.vs/ProjectSettings.json @@ -0,0 +1,3 @@ +{ + "CurrentProjectSetting": null +} \ No newline at end of file diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..a2756a77f287b651384e873271b306beee9f8cf0 GIT binary patch literal 90112 zcmeHw3ve6BdFBjf01&{;G%1k;DT*ZYB(c(vcn~0=eP|&Nl;EXEi4X0{GEEOK0}3Vx zZ~;&f?R6@Y*6Xa-x4xtj=PGgC=5e<7s+@Q1Bu-_WXF0J`m%G^KRN_bF&PmyE9**<0 zV<(lrdoY*>z@@BBwApN(IrFyHdCy7JUoL96;X^UKG0gkNKYWKG*p<59hwj zeQ(D%I~F_MuvZZ@{k4IB8@Y+1yT>I@;BlGVy<9A-+O4IX&0M84qZNwfV!c=?ujz;7 z_1R)c%c^VHc0wqXg4y|*%oD+DcU8u!=nKMcVZK#6n_7G2q@X})TVrubf@UhI*U}|M~Av+JnUd+rdgI4f= zWp3_tqm)b4%8jC`Rjs)V8C?W-!eVANvzVDrXO@E3j2xMAy;$E_9cv~)5g{`R^xMj% z84Lu#kWS5HY^<5gT*hP>%IE;jUr8;dFQgX7qVagBsjvfABg^b|skC!>TPYO_MNMs2 zfW1GAe2;;Zn0Og2Hn^#LUaQrLxnc=7u?eeF%wdBqa%PjQ0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m^cXK434>j?}FvbXgYVKj7W{OPcjajlVRF}X&{eY3PHN@*MV(P5qXMUveAGtV<< zUU=UB5B`PDi03KyC-^z;MX+#zfP`zMXlyMZ{U0- zn|VCwy|TEJy^?8_Ni8*|YS_P);1(mj9BdsAf~lq8Ii+TsgJ;## z!Mz+9%cpg_*G2RzIL?BH2^+h9Jvh6#aIvLU({o`yvM_I+>ROuTSo2HcZPc@i%r1?8 z=jyf;LDYZhso?0FMuYI@(s;9(&<<;>>(|Y^dixw*iKQ=@GTHfgxC?y)+;_GhfhA{` z;I`hBhQ_q%rH8Hh;6cZL9flmyXY}sU_yeaMde@qUA^KiU*}G8^RNYIr);01ZL1oqiej%zf|WM;r;z4kHE&a@1bcE-Jpm}VJGRn1Fm4hhRtHI{*vd7@@?>O2tBTx3YR3qj@7e9>nfMsZLE?Vq)r$!e)=;FscMLJ&L6wFxH zc>OJY;OGD8{{Q>>` prompt. Then we can save the programs to files and +write on the `>>>` prompt. With an editor we can save the programs to files and run them as many times as we want without writing them again. When programmers say "editor" they don't mean programs like Microsoft @@ -9,7 +9,8 @@ Word or LibreOffice/OpenOffice Writer. These programs are for writing text documents, not for programming. **Programming editors don't support things like bigger font sizes for titles or underlining bits of text**, but instead they have features that are actually useful for programming, -like automatically displaying different things with different colors. +like automatically displaying different things with different colors, +but also highlighting mistakes in the code, and coloring syntax. If you are on Windows or Mac OSX you have probably noticed that your Python came with an editor called IDLE. We are not going to use it diff --git a/basics/getting-started.md b/basics/getting-started.md index facdccf..720af5a 100644 --- a/basics/getting-started.md +++ b/basics/getting-started.md @@ -62,9 +62,9 @@ worked just fine. Later we'll learn what `(3, 14)` is. ## Comments -**Comments are text that does nothing.** They can be created by typing a -`#` and then some text after it, and they are useful when our code would -be hard to understand without them. +**Comments are text that don't do anything when they're run.** +They can be created by typing a `#` and then some text after it, +and they are useful when our code would be hard to understand without them. ```python >>> 1 + 2 # can you guess what the result is? diff --git a/basics/variables.md b/basics/variables.md index 4b9c25b..a272424 100644 --- a/basics/variables.md +++ b/basics/variables.md @@ -86,8 +86,9 @@ Variable names are case-sensitive, like many other things in Python. ``` There are also words that cannot be used as variable names -because they have a special meaning. They are called **keywords**, and -we can run `help('keywords')` to see the full list if we want to. +because they are reserved by Python itself and have a special meaning. +They are called **keywords**, and we can run `help('keywords')` +to see the full list if we want to. We'll learn to use most of them later in this tutorial. Trying to use a keyword as a variable name causes a syntax error.