<jupyter_start><jupyter_text>Welcome!Hello! Welcome to the notebook 📕 for Practice 2!This notebook covers more basics of Python programming discussed in Lesson 2. Let's Get Started 🎉To run/activate a cell:- Click the **play icon ▶️** beside the cell, or- Press **cmd/shift + enter** (Mac) or **ctrl/shift + enter** (Windows) after selecting the cell  Task 1Using string concatenation, construct a short story involving the variables defined for you below!P.S. You can use the variables in any order!<jupyter_code>noun1 = "house"
noun2 = "paper"
noun3 = "baseball bat"
verb1 = "cry"
verb2 = "nod"
verb3 = "congratulate"
adjective1 = "wide"
adjective2 = "creative"
adjective3 = "sleepy"
# Write your code in this cell
story = 



print(story)<jupyter_output><empty_output><jupyter_text>Task 2Write the following lines of code but using indexing and slicing of string `s`!```pythona = "qw"b = "tyas"c = "h"d = "rys"e = "hgfdsaytrewq"```<jupyter_code>s = "qwertyasdfgh"
# Write your code in this cell
a = 



# Write your code in this cell
b = 



# Write your code in this cell
c = 



# Write your code in this cell
d = 



# Write your code in this cell
e =<jupyter_output><empty_output><jupyter_text>Task 3Make a simple calculator that takes inputs from the user and can perform addition, subtraction, multiplication, and division.Print out the result of the calculation!Hint: Use if/else statements.P.S. Feel free to add more operations to the calculator if you want to!<jupyter_code># Write your code in this cell<jupyter_output><empty_output><jupyter_text>Task 4Peter has a test next week. To pass the test, Peter has to score more than or equal to 50 marks. To get a distinction, Peter has to score more than or equal to 70 marks. It is important that Peter does not cheat or else he will fail.Print out `"Pass"` if Peter passes the test.Print out `"Distinction"` if Peter gets a distinction.Otherwise, print out `"Fail"`.<jupyter_code># Write your code in this cell<jupyter_output><empty_output><jupyter_text>Task 5Print out the longest word in the paragraph below.Hint: Use a for loop, if/else statements, and the 'in' keyword (google it!).<jupyter_code>paragraph = "lorem ipsum dolor sit amet, consectetur adipiscing elit. nulla auctor odio non lobortis dictum. ut aliquam velit magna. aenean ultrices facilisis posuere. aliquam erat volutpat. integer lacinia feugiat felis, ut vestibulum dui hendrerit a. curabitur pellentesque nibh quis gravida gravida. cras dictum porta cursus. maecenas lacus orci, dictum sit amet placerat at, dictum non tellus. praesent at condimentum magna. donec et urna et ante cursus consectetur non suscipit erat. vivamus fringilla rutrum sodales. cras sit amet neque ligula. pellentesque ut sagittis ex."
# Write your code in this cell<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07747233131024633, 'fraction_numerical': 0.007140307033202428, 'mean_word_length': 4.987179487179487, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 1, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '127243', 'license': 'MIT', 'n_tokens_mistral': 937, 'n_tokens_neox': 884, 'n_words': 380, 'path': 'Practices/Practice 2.ipynb', 'repo_name': 'xyntechx/Code-for-Hope', 'size': '2801'}