Exam4Training

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.

Exit mobile version