In short string define as a set of characters. It is a data type used in a programming language to hold the data. It may be anything words or a number and also contains text and spaces.
In programming, the string must be enclosed in quotation marks like “computer” or “Can I use your computer” both are string. Even set of numbers “1234567890” are also be a string if it properly specified.
The string will be is terminated by using the null character ‘/0’.
Example
Str = “technology”;
Also read: How to convert Int to string in Python?