String can be expressed in several ways : String Declaration : String PYTHON examples


PYTHON examples » String » String Declaration »

 

String can be expressed in several ways


String can be expressed in several ways: enclosed in single quotes or double quotes
 

 

print 'spam eggs'

print 'doesn't'

print "doesn't"

print '"Yes," he said.'

print ""Yes," he said."

print '"Isn't," she said.'

           
         
  



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo String
» String Declaration