Comment Statement In Python
- Python comment starts with Hash(#) character. Python does not support multi-line comments. To add multi line comments insert # in each line.
- It helps to explain the code.
Example:
Print("hi") # print() is used to display statement
myname=input("enter the name") #input() is used to read input from the
users.
Program:
myname=string(input("enter the name"))#input() is used to
read input from the user
print(myname)
Output:
Abdul Kalam
More topic in Python