PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#what is the ouput of if
sex = "F"
if (sex == 'M' or 'm'):
print("Male")
else:
print("Female")
print("sex: "+sex)
a=(sex == 'M' or 'm')
print(a)
print(bool(a))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run