Explain what the lines 11-16 do in the code does and change them or code them alternatively to get the same output.
n="0xade1"num1=int(n,16)print(num1)list1=[]num2=num1while(num2>0):list1.append(num2%16)num2=num2//16list1.reverse()print(list1)first = list1[0] >> 2for i in range(3):first = (first < 2)="" |="" (list1[i="" +="" 1]="">> 2)second = list1[0] & 3for i in range(3):second = (second < 2)="" |="" (list1[i="" +="" 1]="" &="">print(first,second)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here