changeset 457 | 68813d8d80fb |
parent 425 | c943cdbee397 |
456:be96dc6c9743 | 457:68813d8d80fb |
---|---|
56 |
56 |
57 9. ``a = (1, 2, 3, 4, 5, 6, 7, 8)``. What is the value of a[-3::-1] |
57 9. ``a = (1, 2, 3, 4, 5, 6, 7, 8)``. What is the value of a[-3::-1] |
58 |
58 |
59 Answer: (6, 5, 4, 3, 2, 1) |
59 Answer: (6, 5, 4, 3, 2, 1) |
60 |
60 |
61 10. What is the output of the code block below:: |
|
62 |
|
63 a = "hello", "bye", "welcome", "goodnight" |
|
64 type(a) |
|
65 |
|
66 Answer: <type 'tuple'> |
|
67 |