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

Create your own website, free on WordPress.com.Create your own website.
Start free