<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def calc_mean_std(c0, c1=[], nonStdZero=False):
 """ Calculates both the mean of the data. """

    mi = calc_mean(c0, c1)
    std = calc_std(c0, c1)
    if (nonStdZero):
        std[std == 0] = 1

    return mi, std