Skip to content

Commit f689fca

Browse files
authored
Update 4-10.py
修改了第二行,返回中间三个元素应该是3:6或2:5
1 parent 105ffb3 commit f689fca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapter04/4-10.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
msg1 = ['The','first','three','items','in','the','list','are:']
22
print(msg1)
33
print(msg1[0:3])
4-
print(msg1[2:6])
5-
print(msg1[-3:])
4+
print(msg1[3:6])
5+
print(msg1[-3:])

0 commit comments

Comments
 (0)