Python: Comment

By Xah Lee. Date: .

Comment are ignored.

Comment syntax is anything starting with # (U+23: NUMBER SIGN) to end of line.

Same in python 2 and 3.

# this is a comment

print(3+4) # returns 7

# this is a
# multiline comment

Python

Overview

Help

Comment

String

Arithmetic

Boolean

Conditional

Loop

Data Structure

Function and Class

Module

Misc

Regex

Text Processing

Web

Misc