Strings


#1



What is the proper way to write strings?
print "XQW" or print 'XQW'
return "XQW" or return 'XQW'
if city=='LA' or if city=="LA" # both worked when i submitted code



#2

Both ways are completely valid, there is no difference.

Just don't do this: 'XQW" :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.