Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions