What is the correct python code to display the last four characters of "Digital India"?
a)str[-4:]
b)str[4:]
c)str[*4:]
d)str[4/4:]
Answers
Answered by
5
Answer:
a) strong[-4:]
Explanation:
As compared to General knowledge reading
Answered by
2
Answer:
a) str[-4:]
Explanation:
this is because -4 starts from last that means, for example, str[-3:] that means the last three characters of the word till the last
hope it helped you
Similar questions