0

Python's comparisons

First, I'm a new coder and I started with python. Actually, it's very easy but sometimes I don't understand it. Such like comparisons. Could someone give me an example to tell me how I can use > and < in python :((

13th Jun 2023, 5:18 PM
Ãso
Ãso - avatar
3 Réponses
+ 5
"<" means "smaller than" ">" means "greater than" It is the same as you have seen in math classes. We can ask "Is 3 smaller than 5?": 3 < 5 The answer will be: Yes, True. "Is 4 smaller than 3?" 4 < 3 The answer will be: No, False.
13th Jun 2023, 5:22 PM
Lisa
Lisa - avatar
13th Jun 2023, 6:48 PM
Angela
Angela - avatar
0
https://www.sololearn.com/compiler-playground/c7zAzH9c4HET i made a more detailed explaniation about this
15th Jun 2023, 7:37 AM
Light
Light - avatar