Ad
  • Default User Avatar

    if t: times.append((t,n+'s' if t > 1 else n)) <

    format_duration(3602)

    '0 year, 0 day, 1 hours, 0 minute and 2 seconds'

    to remove unnecessary zeros:

    if int(t): times.append((t,n+'s' if t > 1 else n))

  • Default User Avatar

    in my jypitelab notebook my python script work properly =)
    but here i've got :

    STDERR:

    Traceback (most recent call last):
    File "/workspace/default/tests.py", line 2, in
    from solution import row_sum_odd_numbers
    ImportError: cannot import name 'row_sum_odd_numbers' from 'solution' (/workspace/default/solution.py)