What get printed ?
names = [‘Hasan’, ‘Balwant’,’Sean’,’Dia’]
print (name [-1][-1])
i. H ii. iii. Hasan iv. None
Answers
Answered by
2
Answer:
NONE.
Explanation:
In Co de,
"name isn't defined", "names is" so there's gonna be an error.
Correction:
Output: 'a'
Explanation:
- names[-1] selects last element of list
- names [-1][-1] will return last letter of the last element.
Similar questions