♦ Boolean calculated upon operations in Python
♣ Example1: Boolean calculated upon operations in Python
Boolean output can be calculated upon arithmetic operation. Example
Input:
xxxxxxxxxx
1
num1=5
2
num2=7
3
print(num1>num2)
4
5
6
str1="Hello"
7
str2="Folks"
8
print(len(str1)==len(str2))
9
Output:
1
1