Skip to content

Commit 988b2b9

Browse files
minor fixes and upgrade to Pyscript0.0.3
1 parent 6a3674d commit 988b2b9

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

README.md

+15-18
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date: 2017-10-26
55
66
email: LiaScript@web.de
77
8-
version: 1.0.0
8+
version: 1.0.1
99
1010
language: en
1111
@@ -17,21 +17,22 @@ persistent: true
1717
1818
logo: media/cover.jpg
1919
20-
import: https://raw.githubusercontent.com/LiaTemplates/PyScript/0.0.2/README.md
20+
import: https://raw.githubusercontent.com/LiaTemplates/PyScript/0.0.3/README.md
2121
2222
@repl: @PyScript.repl(```@0```)
2323
2424
-->
2525

26-
Author: Lisa Tagliaferri
27-
Publisher: DigitalOcean
26+
__Author__ Lisa Tagliaferri
27+
28+
__Publisher__ DigitalOcean
2829

2930
![The Creative Commons Logo](media/file5.png)
3031

3132
This work is licensed under a Creative Commons
3233
Attribution-NonCommercial-ShareAlike 4.0 International License.
3334

34-
ISBN 978-0-9997730-0-0
35+
__ISBN__ 978-0-9997730-0-0
3536

3637
# How To Code in Python 3
3738

@@ -1538,8 +1539,6 @@ print(poem.islower())
15381539

15391540
Now we can run these small programs and see the output:
15401541

1541-
Todo
1542-
15431542
``` bash Output of movie string
15441543
False
15451544
True
@@ -1909,10 +1908,8 @@ Specifying the stride of 2 as the last parameter in the Python syntax
19091908
`ss[0:12:2]` skips every other character. Let's look at the characters that are
19101909
printed in red:
19111910

1912-
todo
19131911

1914-
[S]{.highlight}a[m]{.highlight}m[y]{.highlight}
1915-
[S]{.highlight}h[a]{.highlight}r[k]{.highlight}!
1912+
<span style="color:red">S</span>a<span style="color:red">m</span>m<span style="color:red">y</span><span style="color:red">S</span>h<span style="color:red">a</span>r<span style="color:red">k</span>!
19161913

19171914
Note that the whitespace character at index number 5 is also skipped with a
19181915
stride of 2 specified.
@@ -1930,7 +1927,7 @@ Specifying the stride of 4 as the last parameter in the Python syntax
19301927
`ss[0:12:4]` prints only every fourth character. Again, let's look at the
19311928
characters that are printed in red:
19321929

1933-
[S]{.highlight}amm[y]{.highlight} Sh[a]{.highlight}rk!
1930+
<span style="color:red">S</span>amm<span style="color:red">y</span> Sh<span style="color:red">a</span>rk!
19341931

19351932
In this example the whitespace character is skipped as well.
19361933

@@ -1974,7 +1971,7 @@ string as no index numbers are included in the parameters, and reversing the
19741971
string through the negative stride. Additionally, by having a stride of -2 we
19751972
are skipping every other letter of the reversed string:
19761973

1977-
[!]{.highlight}k[r]{.highlight}a[h]{.highlight}S[\[whitespace\]]{.highlight}y[m]{.highlight}m[a]{.highlight}S
1974+
<span style="color:red">!</span>k<span style="color:red">r</span>a<span style="color:red">h</span>S y<span style="color:red">m</span>m<span style="color:red">a</span>S
19781975

19791976
The whitespace character is printed in this example.
19801977

@@ -4868,9 +4865,9 @@ __Output__ `[0, 3, 6, 9, 12]`
48684865
By printing out the list `numbers` with the stride set to `3`, only every third
48694866
item is printed:
48704867

4871-
[**0**]{.highlight}, 1, 2, [**3**]{.highlight}, 4, 5,
4872-
[**6**]{.highlight}, 7, 8, [**9**]{.highlight}, 10, 11,
4873-
[**12**]{.highlight}
4868+
[**0**]<!--style="color:red"-->, 1, 2, [**3**]<!--style="color:red"-->, 4, 5,
4869+
[**6**]<!--style="color:red"-->, 7, 8, [**9**]<!--style="color:red"-->, 10, 11,
4870+
[**12**]<!--style="color:red"-->
48744871

48754872
Slicing lists with both positive and negative index numbers and indicating
48764873
stride provides us with the control to manipulate lists and receive the output
@@ -5882,9 +5879,9 @@ __Output__ `(0, 3, 6, 9, 12)`
58825879
By printing out the tuple `numbers` with the stride set to `3`, only every third
58835880
item is printed:
58845881

5885-
[**0**]{.highlight}, 1, 2, [**3**]{.highlight}, 4, 5,
5886-
[**6**]{.highlight}, 7, 8, [**9**]{.highlight}, 10, 11,
5887-
[**12**]{.highlight}
5882+
[**0**]<!--style="color:red"-->, 1, 2, [**3**]<!--style="color:red"-->, 4, 5,
5883+
[**6**]<!--style="color:red"-->, 7, 8, [**9**]<!--style="color:red"-->, 10, 11,
5884+
[**12**]<!--style="color:red"-->
58885885

58895886
Slicing tuples with both positive and negative index numbers and indicating
58905887
stride provides us with the control to receive the output we're trying to

0 commit comments

Comments
 (0)