User FAQs


1) How do I convert a number to a string ?
Use the built-in type constructor str()


2) How can you use negative numbers in String subscripts ?
We can use negative numbers in subscripts to access characters from the end of the string.
If we use -1 as the subscript, we get the last character of the string.
Similarly, -2 will give us the second-last character, and so on.




© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext