1 # coding: UTF-8
2 # boolean expressions have only two values: True and False.
3 x = 12.4
4 y = 12.3
5 print x = y # symbol '=' is used to determine whether two numbers are equal. The result of this statement is False.
6 x = 12.3
7 print x = y # The result of this statement is True.
8 print x! = Y # symbol '! = 'Is used to determine whether two numbers are not equal. The result of this statement is False.
9 a = 12
10 B = 14
11 print a> = B # symbol '> =' is used to determine whether a is greater than or equal to B. The result of this statement is False.
12 print a <= B # symbol '<=' is used to determine whether a is less than or equal to B. The result of this statement is True.
13 print a> B # symbol '>' is used to determine whether a is greater than B. The result of this statement is False.
14 print a <B # symbol '<' is used to determine whether a is smaller than B. The result of this statement is True.
15 a = 'aaa'
16 B = 'bbb'
17 print a> B # You can also determine the size of the two strings. The reslut of this statement is False.
18 print a <B # result = True for this statement
19 # note the difference between the operator "=" and operator "=". "=" is to assign the value on the right to the variable on the left.
20 # And "=" is used to determine whether the value on the left is equal to the value on the right.
21
{Online shopping for rebates, new shopping choices}