Example
Logical Operators and, or, not
Combining conditions with logical operators and, or and not.
Showing 1–10 of 130
Example
Combining conditions with logical operators and, or and not.
Challenge
…is no lightning and range safety reports GO, using and and not, then print every rule that is holding the launch.
Challenge
…with find(), including the -1 it gives when there is nothing to find, then slice out the error message.
Article Mini projects
…programs that convert between decimal, base-6, and Eridian notation.
Article Mini projects
…perfect for keeping our space explorers in tip-top shape! Note : You can find the complete code for this project in the " Article's code " tab above the content of this article. Feel free to peek…
Challenge
…normalise IDs typed by hand and print a clear cleared or not-cleared message.
Challenge
…dicts, then collect the others with their status into one "not go yet" line, or none.
Article Mini projects
…concept used in astronomical calculations. Scientific Notation - A Way to Handle Huge Numbers Earth's mass is about 5,972,000,000,000,000,000,000,000 kilograms. Inconvenient to write, right? That's…
Challenge
…each problem: an unknown name, a number setting that is not a number or is outside its range in RANGES , a safe_mode that is not true or false , a log_level that is not in LOG_LEVELS . After the…
Challenge
…that is missing, in that order, then a mass that is not a number, is 0 or less, or is over MAX_ITEM_KG . Then print one line per item, named by its id or, without one, by its position: CG-0042 PASS…