Commands are used to explain a line in a program. In python # symbol is used to write a command line. Command lines are ignored by the compiler. The command line is also used to used to hide the code.

1. Single Line Command:


The single line command start with #.


Eg:

#This is a basic program
print(“Hello World”)

OUTPUT:

Hello World

2. Multiline command:


For multiline command we can use triple quotes.

Eg:

“””
This is an example for multiple command
“””
print(“This program is an example for multiline command”)


OUTPUT:

This program is an example for multiline command



1 Comments

  1. This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post. Gaming

    ReplyDelete

Post a Comment

Previous Post Next Post