---
title: "Comment by Bikash Daga on \"String Slicing in Python\" | Hashnode"
description: "Thank you for sharing this Dev2, nicely written article. you can add this: Slicing with positive and negative index Code: s = &quot;Welcome to scaler&quot; s1 ="
url: "https://hashnode.com/posts/py-string-slicing/616b18af441bd36daa955c0f/comment/624c28932b09bb392ea5ce1c"
---

[Discussion](https://hashnode.com/posts/py-string-slicing/616b18af441bd36daa955c0f)

Comment [String Slicing in Python](https://hashnode.com/posts/py-string-slicing/616b18af441bd36daa955c0f)

[Bikash Daga](https://hashnode.com/@bikashdaga)

[Apr 5, 2022](https://hashnode.com/posts/py-string-slicing/616b18af441bd36daa955c0f/comment/624c28932b09bb392ea5ce1c)

Thank you for sharing this Dev2, nicely written article.

you can add this: Slicing with positive and negative index

**Code:**

```
s = "Welcome to scaler"
s1 = s[3 : -7]
print("positive start index, negative end index:", s1)
# above slice operation can also be written as
s2 = s[-14 : 10]
print("negative start index, positive end index:", s2)
```

**Output:**

```
positive start index, negative end index: come to
negative start index, positive end index: come to
```

Check this String Slicing in Python [article on Scaler Topics](https://www.scaler.com/topics/python/string-slicing-in-python/).
