I don't know how these two things are working, and their outputs. And if there is any better way to do the same work.

Code 1:

```
A = []
s = []
for i in range(0,int(input())):
    name = input()
    score = float(input())
    s.append(name)
    s.append(score)
    A.append(s)
    s = []
print(A)

```

Output 1: 

```
[['firstInput', 23.33],['secondInput',23.33]]

```

Code 2: 

```
A = []
s = []
for i in range(0,int(input())):
    name = input()
    score = float(input()) 
    s.append(name)
    s.append(score)
    A.append(s)
    s.clear()
print(A)

```

Output 2:

```
[[],[]]

```