Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
d30e0194
Commit
d30e0194
authored
Jan 21, 2014
by
Paul Sokolovsky
Browse files
Add bytearray basic tests.
parent
09ce0599
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/bytearray1.py
0 → 100644
View file @
d30e0194
a
=
bytearray
([
1
,
2
,
200
])
print
(
a
[
0
],
a
[
2
])
print
(
a
[
-
1
])
a
[
2
]
=
255
print
(
a
[
-
1
])
a
.
append
(
10
)
print
(
len
(
a
))
s
=
0
for
i
in
a
:
s
+=
i
print
(
s
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment