Q. What will be the output of the following programming code?


str = "My Python Programming"
print (str[-5:-1])
print (str[1:5])
print (str[:-4])
print (str[0:])
print (str[:13-4])
print (str[:3])

Answer :-

mmin
y Py
My Python Program
My Python Programming
My Python
My

>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post