A string sub = “Computer Science” is defined. Give Python statements to:
(a) Display last three characters of sub.
Answer:
Python statement: sub[-3:]
Very Short Answer Type Questions (1 Mark each)
Very Short Answer Type Questions (1 Mark each)
Last updated at April 16, 2024 by Teachoo
Answer:
Python statement: sub[-3:]