<jupyter_start><jupyter_text>6.1 Booleans A boolean is like a light switch. It can only have two values. Just like a light switch can only be on or off, a boolean can only be True or False.In numeric contexts (for example, when used as the argument to anarithmetic operator), they behave like the integers 0 and 1, respectively.You can use variables to store booleans like this:<jupyter_code>a = True
b = False<jupyter_output><empty_output><jupyter_text>6.1.1 Booleans and Logical OperatorsBoolean values respond to logical operators __and__ / __or__. For example:True __`and`__ False = FalseTrue __`and`__ True = TrueFalse __`and`__ True = FalseFalse __`or`__ True = TrueFalse __`or`__ False = False<jupyter_code># You may try the above examples here.

True and True 
True and False
False and True
False or True
False or False<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.06301050175029171, 'fraction_numerical': 0.008168028004667444, 'mean_word_length': 5.3088235294117645, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '250081', 'license': 'Apache-2.0', 'n_tokens_mistral': 263, 'n_tokens_neox': 257, 'n_words': 116, 'path': 'Beginner_2/6.1 Built-in Standard Data Types - Booleans.ipynb', 'repo_name': 'maxcarolino/TrainingNotebooks', 'size': '857'}