QUESTION IMAGE
Question
which of the following is the only correct way to write a string?
select the one choice that best answers the prompt above:
answer 1
hello
answer 2
both hello or hello are correct ways to create strings
answer 3
hello
answer 4
hello
Brief Explanations
In programming (Computer Science sub - field), strings can be written using either double quotes ("") or single quotes (''). For example, in Python, both "hello" and 'hello' are valid string literals.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
- both "hello" or 'hello' are correct ways to create strings