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...
For example a wrong program for easy to understand
l Python allows for either pairs of
single or double quotes.
l Subsets of strings can be taken
using the slice operator ([ ] and [:] ) with indexes
l starting at 0 in the beginning of
the string and working their way from -1 at the end.
l The plus (+) sign is the string
concatenation operator and
l the asterisk (*) is the repetition
operator. For
Output:
I think you can understand where incorrect the program so, I write the right program.
Input:
Output:
0 comments :
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.
Menu Footer Widget
Followers
Search This Blog
Translate
Contact
Popular Posts
-
Software development life cycle sometime reffer to as system development life cycle and abbreviated as SDLC. A life cycle and abbreviated a...
-
Software is collection of data or computer instructions that tell the computer how to work. Examples of application software include off...
-
Suppose the program print "Hello" and Print "What is your name " then takes input from user and again print a line with...
Post a Comment