Hi,
I have started python programming. And my question is related to string .
I wrote below statement
W e l c o m e
0 1 2 3 4 5 6
So, I am expecting the output as elc
then, why it is just showing me "el" ?
Please help me here
Thanks
I have started python programming. And my question is related to string .
I wrote below statement
msg= "Welcome" print(msg) I got theoutput as "Welcome" :correct then, print(msg[1]) I got the output as "e" : correct then, I wrote print(msg[1:3])I got the output as "el" : I don't understand this
W e l c o m e
0 1 2 3 4 5 6
So, I am expecting the output as elc
then, why it is just showing me "el" ?
Please help me here
Thanks