Computer Science, asked by aryanup7266, 5 months ago

str1 = ‘Vidyalaya’
print( str1 [ : len(str1)-1 : 2 ] )
write the output of the above program ?

Answers

Answered by riyaatschool
1

Answer:

'dyalaya'

Explanation:

as the length of string is 9

so the letter would get printed from index 2 to 9-1 which is 8 and we know the first letter index is 0

please mark brainliest

need only 1 to get promoted to next level

pleaseeeeeeeeeee

Similar questions