Computer Science, asked by RohanDheeraj, 8 months ago

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 vishalpawar80
5

Answer:

a) strong[-4:]

Explanation:

As compared to General knowledge reading

Answered by shivakumarjagadish12
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