Ask Question
12 October, 06:47

What is the comment marker in Python? ("character marker" means the sequence of characters that indicates the beginning of a comment.)

+5
Answers (1)
  1. 12 October, 09:25
    0
    The # marker is used to mark a line comment in python.

    Explanation:

    The line that starts with # is a comment. Python will ignore the lines that starts with #. These comments can be used to add extra information in the python code.

    For example:-

    Following is the python code with comments.

    names=['sam','optimus','bumblebee'] #names is the list of transformers characters.

    for i in names:

    print (i) #printing the names.

    There are 2 comments in the python code written above. These are ignored by python.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is the comment marker in Python? ("character marker" means the sequence of characters that indicates the beginning of a comment.) ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers