x != y # x is not equal to y x > y # x is greater than y x < y # x is less than y x >= y # x is greater than or equal to y x <= y # x is less than or equal to y x is y # x is the same as y x is not y # x is not the same as y
Here is what the above code is Doing:
1. The first line is a comment. Comments are ignored by the Python interpreter.
2. The second line is a string. Strings are used to store text.
3. The third line is a variable. Variables are used to store values.
4. The fourth line is a function. Functions are used to perform actions.
5. The fifth line is a conditional. Conditionals are used to make decisions.
6. The sixth line is a loop. Loops are used to repeat actions.