1 Matching Annotations
- Sep 2020
-
greenteapress.com greenteapress.com
-
Chapter
Strings Strings are sequence of characters and zero-index based. A char in a string can be accessed by using []. A string can be traversed using for loop. Strings can be sliced to get a piece of string. Various built in methods area available such as len,find,lower,upper,capitalize,isalpha,isnumeric etc.
operator concats two strings. comparison operators compares the strings lexcographically. Most importantly strings are immutable once created they can't be modified.
Tags
Annotators
URL
-