Skip to content

Commit 1d5bea7

Browse files
authored
Update 780-string-hex.markdown
1 parent 212972b commit 1d5bea7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

_build/reference/780-string-hex.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@
44
55
Returns the hexadecimal value of x as string.
66

7+
### Example
78

9+
```
10+
print hex(255) ' output: FF
11+
print bin(8) ' output: 1000
12+
print oct(16) ' output: 20
13+
```

0 commit comments

Comments
 (0)