equal
deleted
inserted
replaced
|
1 Creating a string:\\ |
|
2 {\ex \lstinline| s = ``Hello World''|} -- Single quotes and triple |
|
3 quotes can also be used. |
|
4 |
|
5 Accessing individual elements:\\ |
|
6 {\ex \lstinline| s[5]|} -- Elements can be accessed with their index |
|
7 |
|
8 Strings are immutable. |