qvcalc (version 1.0.2)

indentPrint: Print with Line Indentation

Description

Same as print, but adds a specified amount of white space at the start of each printed line

Usage

indentPrint(object, indent=4, ...)

Value

object is returned invisibly

Arguments

object

any printable object

indent

a non-negative integer, the number of spaces to insert

...

other arguments to pass to print

Author

David Firth, d.firth@warwick.ac.uk

Examples

Run this code
indentPrint("this indented by 10 spaces", indent=10)

Run the code above in your browser using DataLab