For the following code:
I get the output '3', which I understand
but when I run:
I get a blank space, I don't understand why I get a blank space as output, can anyone explain? I'll be extremely grateful
1 2 |
my_string = "0123456789" print (my_string[ 3 ]) |
but when I run:
1 |
print (my_string[ 3 : 2 : 4 ]) |