<jupyter_start><jupyter_text>![title](img/cover4.png) Copyright! This material is protected, please do not copy or distribute.    by:<NAME> ***Udemy course : Python Bootcamp for Data Science 2021 Numpy Pandas & Seaborn ***  The Exercises for  Module 4 Instruction:  Please write your code after the phrase "  Your codes begin here:"  Q1. Create a new tuple with the name 'tuple1' that consists of ten integers from 1 to 10? Then display this tuple?The output should look like this:output: (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)<jupyter_code>## Your codes begin here:<jupyter_output><empty_output><jupyter_text>Q2. Convert the tuple that you have created in Q1 into a list named 'list1'? Then display this list?The output should look like this:output: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]<jupyter_code>## Your codes begin here:<jupyter_output><empty_output><jupyter_text>Q3. Add the number '11' at the the end of the list1 from the prevous example? then display this list?The output should look like this:output: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]<jupyter_code>## Your codes begin here:<jupyter_output><empty_output><jupyter_text>Q4. Create a dictionary named 'dict1' where the keys are (a, b, c, d, e) and the values are (15, 45, 54, 12, 77)? then display it?The output should look like this:output: {'a': 15, 'b': 45, 'c': 54, 'd': 12, 'e': 77}<jupyter_code>## Your codes begin here:<jupyter_output><empty_output><jupyter_text>Q5. Write a code that displays only the keys of the dictionary 'dict1'?The output should look like this:output: dict_keys(['a', 'b', 'c', 'd', 'e'])<jupyter_code>## Your codes begin here:<jupyter_output><empty_output><jupyter_text>Q6.  Write a code that deletes the key 'e' from dict1? Then display the dictionary after the deletion?The output should look like this:output: {'a': 15, 'b': 45, 'c': 54, 'd': 12}<jupyter_code>## Your codes begin here:<jupyter_output><empty_output><jupyter_text>*** Solutions***  Q1. Create a new tuple with the name 'tuple1' that consists of ten integers from 1 to 10? Then display this tuple?<jupyter_code>## Your codes begin here:

tuple1 = (1,2,3,4,5,6,7,8,9,10)
tuple1<jupyter_output><empty_output><jupyter_text>Q2. Convert the tuple that you have created in Q1 into a list named 'list1'? Then display this list?<jupyter_code>## Your codes begin here:

list1 = list(tuple1)
list1<jupyter_output><empty_output><jupyter_text>Q3. Add the number '11' at the the end of the list1 from the prevous example? then display this list?<jupyter_code>## Your codes begin here:

list1.append(11)
list1<jupyter_output><empty_output><jupyter_text>Q4. Create a dictionary named 'dict1' where the keys are (a, b, c, d, e) and the values are (15, 45, 54, 12, 77)? then display it?<jupyter_code>## Your codes begin here:

dict1= {'a': 15, 'b': 45, 'c': 54, 'd': 12, 'e': 77}
dict1<jupyter_output><empty_output><jupyter_text>Q5. Write a code that displays only the keys of the dictionary 'dict1'?<jupyter_code>## Your codes begin here:

dict1.keys()<jupyter_output><empty_output><jupyter_text>Q6.  Write a code that deletes the key 'e' from dict1? Then display the dictionary after the deletion?<jupyter_code>## Your codes begin here:

del dict1['e']
dict1<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12305779987569919, 'fraction_numerical': 0.04661280298321939, 'mean_word_length': 5.907725321888412, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 50, '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': '12', 'dir': 'jupyter-structured-clean-dedup', 'id': '478378', 'license': 'MIT', 'n_tokens_mistral': 1221, 'n_tokens_neox': 1115, 'n_words': 426, 'path': 'exercises/Exercise ch4.ipynb', 'repo_name': 'SiamakMushakhian/Numpy-Pandas-Seaborn', 'size': '3223'}