string pick the first 2 characters python

34

string pick the first 2 characters python -

t = "your string"
t[:2]

Comments

Submit
0 Comments