Skip to content

Commit

Permalink
Updating examples for Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
swaroopch committed Feb 3, 2017
1 parent 0946bf9 commit 7e81e63
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion book.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"contactUrl": "https://www.swaroopch.com/contact/",
"downloadUrl": "https://www.gitbook.com/book/swaroopch/byte-of-python/details",
"officialUrl": "https://python.swaroopch.com/",
"pythonVersion": "3.5.1",
"pythonVersion": "3.6.0",
"sourceUrl": "https://github.com/swaroopch/byte-of-python",
"vimBookUrl": "https://vim.swaroopch.com/"
}
Expand Down
6 changes: 3 additions & 3 deletions first_steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Here is an example of what you should be seeing, when using a Mac OS X computer.

<!-- The output should match pythonVersion variable in book.json -->
```python
> python3
Python 3.5.1 (default, Jan 14 2016, 06:54:11)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
$ python3
Python 3.6.0 (default, Jan 12 2017, 11:26:36)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> print("Hello World")
Hello World
Expand Down
4 changes: 2 additions & 2 deletions installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ For Windows 7 and 8:

- Right click on Computer from your desktop and select `Properties` or click `Start` and choose `Control Panel` -> `System and Security` -> `System`. Click on `Advanced system settings` on the left and then click on the `Advanced` tab. At the bottom click on `Environment Variables` and under `System variables`, look for the `PATH` variable, select and then press `Edit`.
- Go to the end of the line under Variable value and append `;C:\Python35` (please verify that this folder exists, it will be different for newer versions of Python) to the end of what is already there. Of course, use the appropriate folder name.
- If the value was `%SystemRoot%\system32;` It will now become `%SystemRoot%\system32;C:\Python35` <!-- The directory should match pythonVersion variable in book.json -->
- If the value was `%SystemRoot%\system32;` It will now become `%SystemRoot%\system32;C:\Python36` <!-- The directory should match pythonVersion variable in book.json -->
- Click `OK` and you are done. No restart is required, however you may have to close and reopen the command line.

### Running Python prompt on Windows
Expand Down Expand Up @@ -72,7 +72,7 @@ You can see the version of Python on the screen by running:
<!-- The output should match pythonVersion variable in book.json -->
```
$ python3 -V
Python 3.5.1
Python 3.6.0
```

NOTE: `$` is the prompt of the shell. It will be different for you depending on the settings of the operating system on your computer, hence I will indicate the prompt by just the `$` symbol.
Expand Down
2 changes: 1 addition & 1 deletion stdlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Suppose we want to check the version of the Python software being used, the `sys
```python
>>> import sys
>>> sys.version_info
sys.version_info(major=3, minor=5, micro=1, releaselevel='final', serial=0)
sys.version_info(major=3, minor=6, micro=0, releaselevel='final', serial=0)
>>> sys.version_info.major == 3
True
```
Expand Down

0 comments on commit 7e81e63

Please sign in to comment.