excuse me starting from lesson 2.
First of all as from the configuration, all PORTA is digital with bit 7-2 as input and bit 1-0 to output.


all PORTA is not digital its all analogue



now you have given a number to lata = 3. Even if you change this number nothing happen so far.
the result is fixed , changing the input conditions will never change the result . why ?

LED 2 is opposite state from porta.1
no its not its always set. why ?
and LED 1 the same state as porta.1
no its not its never set. why ?