strings can be expressed in several ways. : String Variables « String « Python





strings can be expressed in several ways.

 

print 'spam eggs'
print 'doesn\'t'
print "doesn't" 
print '"Yes," he said.'
print "\"Yes,\" he said." 
print '"Isn\'t," she said.'

   
  










Related examples in the same category

1.The use of a variableThe use of a variable