fbpx
Python String ICT

What are string in python?

– Python string is a collection of unicode characters.
– Python strings can be enclosed in single, double or triple quotes.

Example:

  ‘ICTSouthBopal’

  “ICTSouthBopal”

   ‘ ‘ICTSouthBopal’ ‘

  “””ICTSouthBopal”””

   – Use \ to escape special characters like single quote and double quote.

   ‘ i don\’t like this’
   ‘He said, \’Learning ICT Python\’.’

Leave a Reply

×