What is String? and it is use in Python?

String is a data type used in programming or String is an array of characters,which is used to store sequence of characters  , such as name , address etc...

Python allows for either pairs of single or double quotes.
Subsets of strings can be taken using the slice operator ([ ] and [:] ) with indexes
starting at 0 in the beginning of the string and working their way from -1 at the end.
The plus (+) sign is the string concatenation operator and
the asterisk (*) is the repetition operator. For

For example a wrong program for easy to understand

Output:

I think you can understand where incorrect the program so, I write the right program.

Input:

Output:

0 comments :

Post a Comment

Cancel Reply

computer books list list of computer science books with authors best computer books for beginners fundamental of computer books pdf free download computer books for dummies best computer hardware books introduction to computer best computer books of all time

Powered by Blogger.

Followers

Search This Blog

Translate