Tech enthusiast?Follow to get interesting tweets related to Tech, Programming,Machine Learning/AI.
-
Not any company or product profile. Just someone like you
Output will be 1
It executed the try part, y will be assigned with 1 that is the integer value of "0b001".
print(x[-y]) => print(x[-1]). So, it will print the last element of x which is "1".