<jupyter_start><jupyter_text>Examples Example 1: Basic Math Operations I want to point out two things. The first is the print statements.Do you see how each variable is preceded by str? That is because those variables are either integers or floats. If we want to smoosh a number together with a string, we have to cast the number as a string and that is what the str method does.The second thing is the value of the division operation. If you are sharp you will see that we divided two integer values. Despite the fact that the result was an integer, the data type of division resulted in a float.<jupyter_code>x = 10
y = 5

addition = x + y
subtraction = x - y
multiplication = x * y
division = x / y
integer_division = x // y  
modulo = x % y
exponent = x ** y

print('The result of addition was ' + str(addition))
print('The result of subtraction was ' + str(subtraction))
print('The result of multiplication was ' + str(multiplication))
print('The result of division was ' + str(division))
print('The result of integer_division was ' + str(integer_division))
print('The result of modulo was ' + str(modulo))
print('The result of exponent was ' + str(exponent))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07370184254606366, 'fraction_numerical': 0.0033500837520938024, 'mean_word_length': 4.506912442396313, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '501679', 'license': 'MIT', 'n_tokens_mistral': 341, 'n_tokens_neox': 320, 'n_words': 172, 'path': '02 Basics/06-arithmetic-operators.ipynb', 'repo_name': 'MassStreetUniversity/tutorial-python', 'size': '1194'}