Python print statement functionality

The print() statement in Python 3 allows you to specify the result of an if-else statement before the test condition syntax.  The example code below has an output of 1.

Leave a comment

Design a site like this with WordPress.com
Get started