Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started