def update_line(line):
    """
    Takes a string line representing a single line of code
    and returns a string with print updated
    """
    # Strip left white space using built-in string method lstrip()
    new_line = line.lstrip()
    striped_spaces = len(line)-len(new_line)

    # If line is print statement,  use the format() method to add insert parentheses
    if new_line.find('print') == 0:
        new_line = "print("+ new_line[6:] +")"

    # Note that solution does not handle white space/comments after print statememt
    new_line = " " * striped_spaces + new_line
    return new_line