what i want as an output is

```
1sec
2sec
3sec
.
.
.
1min
0sec
1sec
.
.
.
2min
0sec

```

the code i'm stuck on rn is

```
from time import sleep
i = 0
j = 0
def clockpt1 (i):
   while i < 5:
       print(i, "sec")
       i = i + 1
       sleep(1)
   else:
       i = 0
       clockpt2(j)

def clockpt2(j):
   global j
   j += 1
   print(j,"min")

def clock():
   while True:
       clockpt1(i)

clock()

```

i looked around stackoverflow and apparently using the "global" term is best especially if i want to draw from a global variable and update said variable, but i cant seem to get it to work.

At the same time can someone explain why does "return" not work in this situation?

i get this error

```
 File "clocktest", line 14
   global j
   ^
SyntaxError: name 'j' is parameter and global ```

```