Knowee
Questions
Features
Study Tools

Which symbols are used to indicate comments in Python?*2 points$#"''' (triple quotes)@%

Question

Which symbols are used to indicate comments in Python?*2 points$#"''' (triple quotes)@%

🧐 Not the exact question you are looking for?Go ask a question

Solution

In Python, comments are indicated by the '#' symbol for single line comments. For example:

This is a comment

For multi-line comments, you can use triple quotes, either single or double. For example:

''' This is a multi-line comment '''

or

""" This is a multi-line comment """

Similar Questions

1 pointWhich of the following character(s) is used to give single-line comments in Python?//#!/*

Which character is used in Python to make a single line comment?

Identify the symbol that a Python single line comment begins with.Select one:$$#/*//

Which of the following is a valid way to comment a single line in Python?(1 Point)/*This is a comment*///This is a comment#This is a comment<!--This is a comment-->

The # (hash) symbol is used to insert a comment in Python.TRUEFALSE

1/4

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.