Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = ('Practice', 'Machine', 'Learning')
- # Lấy phần tử từ vị trí số 1 đến vị trí số 3
- # Lưu ý là vị trí bắt đầu từ 1 không phải từ 0
- print(t[1:3]) # ('Machine', 'Learning')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement