<jupyter_start><jupyter_text>04 - Beginner Exercises* List---  🍓🍓🍓1.Make a variable named ```item0``` and set its value to the first item in the list below.<jupyter_code># Write your own code in this cell
mylist = [1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78]


print()<jupyter_output><empty_output><jupyter_text>🍓🍓🍓2.Print the second item in the list directly by the ```print()``` function.<jupyter_code># Write your own code in this cell
mylist = [1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78]<jupyter_output><empty_output><jupyter_text>🍓🍓🍓3.Print the last item in this list.<jupyter_code># Write your own code in this cell
mylist = [1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78]<jupyter_output><empty_output><jupyter_text>🍓🍓🍓4.The ```append()``` method allows you to add items to your lists. add the string ***"R"*** to the below list with ```append()``` method.<jupyter_code># Write your own code in this cell
mylist = ["Julia", "Python"]<jupyter_output><empty_output><jupyter_text>🍓🍓🍓5.Lists can contain a wide variety of data.You can even add another list as an object to a list.In Python, this is referred to as ***nested data***. Append another list including ```"SQL"``` and ```"Scala"``` to the bottom of my list.<jupyter_code># Write your own code in this cell
sublist = 

print(mylist)<jupyter_output><empty_output><jupyter_text>🍓🍓🍓6.```insert()``` allows the user to specify the index to which your object should be appended. So add ```"C++"``` to the ***0*** index of ```mylist```.<jupyter_code># Write your own code in this cell


print(mylist)<jupyter_output><empty_output><jupyter_text>🍓🍓🍓7.You can find out the index number of an item in your list by using the ```index()``` method. The following ist is a factorial list of one-digit numbers.Use the index method to determine the factorial of which one-digit number is equal to **5040**.<jupyter_code># Write your own code in this cell
mylist = [0, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880]<jupyter_output><empty_output><jupyter_text>🍓🍓🍓8.The ```remove()``` method is used to remove specific element from a list. remove the number that is not a square number from ```mylist```<jupyter_code># Write your own code in this cell
mylist=[0, 1, 25, 16, 9, 49, 81, 36, 4, 65]<jupyter_output><empty_output><jupyter_text>🍓🍓🍓9.Reverse ```mylist``` using the ```reverse() ``` method.<jupyter_code># Write your own code in this cell
mylist = [45, 28, 15, 6, 1, 0]<jupyter_output><empty_output><jupyter_text>🍓🍓🍓10.Count how many times the number ***0*** appears in  ```mylist``` using the ```count()``` function.<jupyter_code># Write your own code in this cell
mylist = [0, 0, 1, 0, 0, 1, 6, 0, 1, 0, 2, 1, 6, 6, 1, 0, 16, 1, 18, 0, 6, 2, 22, 1, 0, 6, 3, 6, 28, 1, 15, 0, 2, 16, 6, 1, 3, 18, 6, 0, 5, 6, 21, 2, 1, 22, 46, 1, 42, 0, 16, 6, 13, 3, 2, 6, 18, 28, 58, 1, 60, 15, 6, 0, 6, 2, 33, 16, 22, 6, 35, 1, 8, 3, 1, 18, 6, 6, 13, 0, 9, 5, 41, 6, 16, 21, 28, 2, 44, 1]<jupyter_output><empty_output><jupyter_text>🍓🍓🍓11.Find the sum of the numbers in the following lists<jupyter_code># Write your own code in this cell
list_1 = [1, 2, 3]
list_2 = [1, 2, 4, 7, 14]<jupyter_output><empty_output><jupyter_text>🍓🍓12.Samad encountered a long list of ```True``` and ```False``` in a scientific study.This list indicates whether or not each individual is a smoker.Using the ```sum()``` method, can you tell us how many individuals on this list are smokers?<jupyter_code># Write your own code in this cell
samad_list = [True, False, False, True, False, True, False, False, True, False, True, False, False, True, True, False, False, True, False, True, False, False , True, False, True, False, False , True, True, False, False, True, False, True, False, False , True, False, True, False, False, True, True, False, False , True, False, True, False, False , True, False, True, False, False , True]<jupyter_output><empty_output><jupyter_text>🍓13.calculate the ***maximum***, ***minimum***, ***sum*** and ***mean*** of the following data.<jupyter_code># Write your own code in this cell
mylist = [-31.39, 18.35 , 147.41, 137.18, -102.85, -46.58, 118.94,
          -126.78, -10.26, -139.1, 75.75, 59.18, 71.07, -68.76, 1.18,
          -18.88, 3.43, -82.71, -34.02, -93.1, -80.57, -2.88, 114.47,
          89.67, 97.64, -78.68, 43.39, 11.57, 79.72, 73.24, -121.54,
          2.32, -159.04]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.167316961211843, 'fraction_numerical': 0.09318338306173973, 'mean_word_length': 4.63777490297542, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '13', 'dir': 'jupyter-structured-clean-dedup', 'id': '571296', 'license': 'MIT', 'n_tokens_mistral': 2048, 'n_tokens_neox': 1693, 'n_words': 616, 'path': 'Exercise/.ipynb_checkpoints/04_PyEx-checkpoint.ipynb', 'repo_name': 'pytopia/PyExercises', 'size': '4357'}