Skip to content

Commit

Permalink
TYPO: fix typo in a pyfun1 example
Browse files Browse the repository at this point in the history
  • Loading branch information
sglyon authored Nov 7, 2017
1 parent 98f81c9 commit 905d837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-fun1.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ The result `i` is the integer 12.
s = str(12)
print('s has type', type(s))
t = str(12.34)
print('t has type', type(f))
print('t has type', type(t))
```

**Converting strings to lists.** One more type conversion: We can convert a string to a list of its characters. For example, we convert the string `x = abc'` to the list `['a', 'b', 'c']` with `list(x)`. Run this code to see how it works:
Expand Down

0 comments on commit 905d837

Please sign in to comment.