changeset 425 | c943cdbee397 |
parent 232 | da873a5ac918 |
424:19f49715e83f | 425:c943cdbee397 |
---|---|
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 |