Ask Question

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

+2
Answers (1)
  1. 20 June, 02:24
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers