Closed kmr-srbh closed 1 month ago
% cat examples/expr2.py
from lpython import i32
def main():
my_first_list: list[i32] = [1, 2, 3, 4]
my_second_list: list[i32] = [5, 6, 7, 8]
print(my_first_list == my_second_list)
main()
% python examples/expr2.py
False
% lpython examples/expr2.py
False
It seems this happens only for global list variables.
Thanks for confirming this @Shaikh-Ubaid!
The issue is the same for
!=
. It does not occur for>
and<
.