Skip to content

Commit

Permalink
Changes a few things in some files, to fit better or to correct grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianHerfkens authored and Akuli committed Jul 25, 2020
1 parent 2d1b2f1 commit bdf156d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
5 changes: 3 additions & 2 deletions basics/editor-setup.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# 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
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
Expand Down
6 changes: 3 additions & 3 deletions basics/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
5 changes: 3 additions & 2 deletions basics/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit bdf156d

Please sign in to comment.