Matlab
a = 1;
b = 2;
if a == 1
disp('Hello');
else
disp('Hi');
end
if b ~= 1
disp('World');
end
Hello
World
>>
Python
a = 1
b = 2
if a == 1:
print('Hello')
else:
print('Hi')
if b != 1:
print('World')
Result:
Hello
World