String is a Data Type that is used to store storing and manipulating text.
Strings are written inside Double Quotes or Single Quotes.
"hello" , "Hey There" , "Any Text" , "123", "World123"
You can use Double Quotes or Single Quotes, Both Will Work.
For Example :
To Achieve Desired Output You have to use Backslash (\\)
Here We have list of Escape Characters. These are also used for Giving Special Functionality Like New Line or Vertical Space.
We have some Predefined Function To Perform Specific Task on String Like Converting it to Upper Case Text or Cropping some Part of The String.
Let's See them in details
We have considered str is a variable containing String.