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)@%
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
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.