We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09ce059 commit d30e019Copy full SHA for d30e019
1 file changed
tests/basics/bytearray1.py
@@ -0,0 +1,12 @@
1
+a = bytearray([1, 2, 200])
2
+print(a[0], a[2])
3
+print(a[-1])
4
+a[2] = 255
5
6
+a.append(10)
7
+print(len(a))
8
+
9
+s = 0
10
+for i in a:
11
+ s += i
12
+print(s)
0 commit comments