Example
Logical Operators and, or, not
Combining conditions with logical operators and, or and not.
Showing 1–10 of 29
Example
Combining conditions with logical operators and, or and not.
Quiz
…else: 15 questions on conditions, comparison and logical operators and indentation, with instant answers.
Quiz
…on math in Python: 15 questions on +, -, *, /, //, %, **, operator precedence and rounding, with instant answers.
Challenge
…underscores and dashes too, so commands match however operators type them.
Article Python Fundamentals
…space exploration examples. Learn about number types, operators, and practical applications that will help you start your programming journey in an engaging way.
Quiz
…data types and type conversion Arithmetic: // , % , ** and operator precedence Strings: indexing, slicing and string methods Conditions: if , elif , else and truthy values Lists, tuples, dictionaries…
Quiz
…intersection, difference and symmetric difference, with operators and with methods Comparing sets and checking subsets What can go in a set, frozenset , set comprehensions and sorting the items of a…
Challenge
Clear a launch only if the wind is under 30 km/h, there is no lightning and range safety reports GO, using and and not, then print every rule that is holding the launch.
Example
Addition, subtraction, multiplication and division in Python. Basic arithmetic operations.
Challenge
Operators type commands into the console in a hurry, with stray spaces, capital letters and the occasional slip of the finger. The flight software must never act on a command it didn't fully…