<jupyter_start><jupyter_text>Chapter 2 Variables, expressions, and statements  2.5 Operators and operands, 2.7 Order of operations Python evaluates operations in the same order as in math class. Remember PEMDAS...* parentheses: ()* exponents: *** multiplication: ** division: / and //* addition: +* subtraction: -Multiplication and division have the same precedence - evaluate left to rightAddition and subtraction have the same precedence - evaluate left to right<jupyter_code>hours = 5
minutes = 20
totalMin = hours * 60 + 20
print(totalMin)
minutes = 567
totalHours = minutes/60
print(totalHours)
totalFullHr = minutes//60
print(totalFullHr)
2+3**2
(2+3)**2
2**1+1
2**(1+1)
3*1**3
(3*1)**3
6+4/2
(6+4)/2<jupyter_output><empty_output><jupyter_text>2.8 Modulus operator<jupyter_code>quotient = 7//3
print(quotient)
remainder = 7%3
print(remainder)<jupyter_output>1
{'fraction_non_alphanumeric': 0.12254335260115606, 'fraction_numerical': 0.057803468208092484, 'mean_word_length': 5.928, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '24875', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 327, 'n_tokens_neox': 292, 'n_words': 86, 'path': '02-numeric-operations.ipynb', 'repo_name': 'trailmarkerlib/dataExplore', 'size': '865'}