NShiftKey-Rule-Guide logo NShiftKey-Rule-Guide

The "print" statement should not be used

python:PrintStatementUsage

The print statement was removed in Python 3.0. The built-in function should be used instead.

Noncompliant Code Example

print '1'  # Noncompliant

Compliant Solution

print('1')