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 0000000..a2756a7 Binary files /dev/null and b/.vs/slnx.sqlite differ diff --git a/basics/editor-setup.md b/basics/editor-setup.md index 4176cf4..2ad224b 100644 --- a/basics/editor-setup.md +++ b/basics/editor-setup.md @@ -1,7 +1,7 @@ # Setting up an editor for programming An editor is a program that lets us write longer programs than we can -write on the `>>>` 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.