Answers for "python crop string"

0

python crop string

text = "abc"
truncated_text = text[0:2]

print(truncated_text)
# Output
ab
Posted by: Guest on February-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language