Question: Single quotes and double quotes Strings in single quotes are equal to those in double quotes, and they are exchangeable. s = 'string' print(s) string
Single quotes and double quotes Strings in single quotes are equal to those in double quotes, and they are exchangeable. s = 'string' print(s) string ss="python string" print(ss) python string sss='python "Hello World'string' print (sss) python "Hello World"string B. Long strings Triple quotes can define long strings in Python as mentioned before. Long strings may have output like: print("'"this is a long string", he said') "this is a long string", he said?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
