<jupyter_start><jupyter_text>Exercises  Question 1Evaluate the following expression: `(x < y) or (not(z == y) and (z < x))`  * x = 0, y = 6, z = 10  * x = 1, y = 1, z = 1<jupyter_code>(0 < 6) or (not(10 == 6) and (10 < 0))
(1 < 1) or (not(1 == 1) and (1 < 1))<jupyter_output><empty_output><jupyter_text>Question 2 Evaluate the following expressions involving arithmetic operators:  1. `-7 * 20 + 8 / 16 * 2 + 54`  2. `7 ** 2 // 9 % 3`  3. `( 7 – 4 * 2 ) * 10 / 5 ** 2 + 15`  4. `5 % 10 + 10 – 25 * 8 // 5`  5. `' hello' * 2 - 5`<jupyter_code>-7 * 20 + 8 / 16 * 2 + 54
7 ** 2 // 9 % 3
(7 - 4 * 2) * 10 / 5 ** 2 + 15
5 % 10 + 10 - 25 * 8 // 5
' hello' * 2 - 5<jupyter_output><empty_output><jupyter_text>Question 3Evaluate the following expressions involving relational and logical operators:  1. `'hi' > 'hello' and 'bye' < 'Bye'`   2. `'hi' > 'hello' or 'bye' < 'Bye'`   3. `7 > 8 or 5  'I am not fine'`   4. `10 != 9 and 29 >= 29`   5. `10 != 9 and 29 >= 29 and 'hi' > 'hello' or 'bye' < 'Bye' and 7 <= 2.5`<jupyter_code>'hi' > 'hello' and 'bye' < 'Bye'
'hi' > 'hello' or 'bye' < 'Bye'
7 > 8 or 5 < 6 and 'I am fine' > 'I am not fine'
10 != 9 and 29 >= 29
10 != 9 and 29 >= 29 and 'hi' > 'hello' or 'bye' < 'Bye' and 7 <= 2.5<jupyter_output><empty_output><jupyter_text>Question 4Evaluate the following expressions involving arithmetic, relational, and logical operators:  1. `5 % 10 + 10 = 29`   2. `7 ** 2 <= 5 // 9 % 3 or 'bye' < 'Bye'`   3. `5 % 10  1 * 8 // 5`   4. `7 ** 2 // 4 + 5 > 8 or 5 != 6`   5. `7 / 4  'I am not fine'`   6. `10 + 6 * 2 ** 2 != 9 // 4 - 3 and 29 >= 29 / 9`   7. `'hello' * 5 > 'hello' or 'bye' < 'Bye'`<jupyter_code>5 % 10 + 10 < 50 and 29 >= 29
7 ** 2 <= 5 // 9 % 3 or 'bye' < 'Bye'
5 % 10 < 10 and - 25 > 1 * 8 // 5
7 ** 2 // 4 + 5 > 8 or 5 != 6
7 / 4 < 6 and 'I am fine' > 'I am not fine'
10 + 6 * 2 ** 2 != 9 // 4 - 3 and 29 >= 29 / 9
'hello' * 5 > 'hello' or 'bye' < 'Bye'<jupyter_output><empty_output><jupyter_text>Question 6Evaluate the following expressions involving bitwise operators: 1. 15 & 22 2. 15 | 22 3. -15 & 22 4. -15 | 22 5. ~15 6. ~22 7. ~-20 8. 15 ^ 22 9. 8 << 3 10. 40 >> 3<jupyter_code>15 & 22
15 | 22
-15 & 22
-15 | 22
~15
~22
15 ^ 22
8 << 3
40 >> 3<jupyter_output><empty_output><jupyter_text>Question 7What output will be displayed when the following commands are executed in Python shell in sequence:   1. ```python     >>> a = 6     >>> a == 6      >>> a < 5.9      >>> a > 5.9     ```  2. ```python     >>> b = 7      >>> b / 6      >>> b // 6      >>> b / 4      >>> b % 4      >>> b % 7      >>> b * 2      >>> b ** 2     ```<jupyter_code>a = 6
a == 6
a < 5.9
a > 5.9
b = 7 
b / 6
b // 6
b / 4
b % 4
b % 7
b * 2
b ** 2<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20243812338381972, 'fraction_numerical': 0.12670853343184338, 'mean_word_length': 2.2626506024096384, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 89, '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': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '269414', 'license': 'MIT', 'n_tokens_mistral': 1411, 'n_tokens_neox': 1117, 'n_words': 439, 'path': 'YearII/SemesterIII/ProgrammingInPython/Others/Chapter1.ipynb', 'repo_name': 'sudiptog81/ducscode', 'size': '2707'}