Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions String Slicing
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mystring = "There is String"

print(len(mystring)) // To print the length of string

print(mystring[0:5]) // to print particular part of string (In this case output will be only There word)

print(mystring[0:18:2]) // to print character from in between but with a sequence like every 2nd character or 3rd character will be printed