1 Matching Annotations
- Sep 2020
-
greenteapress.com greenteapress.com
-
Chapter 8Strings
strings is a sequence of characters you can acess the characters at once in bracket opertater ,fruit ='banana' String should be given in single or double codes.Strings are immutable.once we create a string we cannot make any changes in them .We declare strings using square brackets.A segment of a string is called a slice.Many built in functions can be used len(),upper(),lower(),etc.We can use len() function to find length of a string.We can even compare two strings==(equal).The expression in brackets
-