string pick the first 2 characters python

42

string pick the first 2 characters python -

t = "your string"
t[:2]

Comments

Submit
0 Comments