Home / Basic Programming

Basic Programming with Python - 2

3. The print statement Used to display data Syntax: Syntax 1: print (display string) Example 2: print (This line will be printed.) Results displayed: This line will be printed . Syntax 2: print (display string, expression/value, parameters) Example 3: print (2 + 2 is, 2 + 2) print (3 * 4 is, 3 * 4) ...

Home Reference Doccument