Comparison operators can use a comparison of two values, and all built-in types support comparison operations. When you compare two values with an operator, the result is a logical value, not true, or false.
One thing to note is that different types are compared differently, numeric types are compared by number size and positive and negative, and strings are compared based on string sequence values, and so on.
In Python, there are the following comparison operators:
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/86/4D/wKiom1e7rBuQyfdUAABlUQ80430897.png-wh_500x0-wm_3 -wmp_4-s_1077434458.png "title=" 3.png "width=" 420 "height=" 225 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:420px; height:225px; "alt=" Wkiom1e7rbuqyfduaabluq80430897.png-wh_50 "/>
Now let's use the comparison operator to do a small task:
Fill in the correct comparison operator between x and Y to output the maximum values for x and Y, so take the initiative to think Oh ~ ~ ~
More learning content, just in the code Bud Net http://www.mayacoder.com/lesson/index
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/86/4D/wKiom1e7rDrgox4oAABFPc8z0pM690.png-wh_500x0-wm_3 -wmp_4-s_2949172149.png "title=" 4.png "width=" "height=" 645 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:400px; height:645px; "alt=" Wkiom1e7rdrgox4oaabfpc8z0pm690.png-wh_50 "/>
Python Beginner Learning Basics Operator--comparison operator