Strings in Python are delimited with:
Strings in Python are delimited with:
A . backslashes (i.e., )
B. double quotes (i.e., ") or single quotes (i.e., ‘)
C. asterisks (i.e., *)
D. dollar symbol (i.e., $)
Answer: B
Explanation:
Topics: strings quotes
Try it yourself:
print("Hello") # Hello
print(‘World’) # World
Unlike in other programming languages, in Python double quotes and single quotes are synonyms for each other.
You can use either one or the other.
The result is the same.
Latest PCEP-30-02 Practice Questions with 124 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments