What will the following code output?

a = 10
while a > 0:
    x = a + 1
    print(x)

1
2
3
4
4
11
11
11
...

What does the following code output?

a = 0
while a < 5:
    a = a + 1
    print(a)

1
2
3
1
1
2
3
4
5