<jupyter_start><jupyter_text>Second list of exercises 1) Use list comprehension to create a list that:- a) Given a list of strings, contains the length of them.- b) Contains all the cubes of the multiples of 17 in a range from 1 to 1000.- c) Contains all the numbers from 1 to 100 that starts with 4 or 5 and are even numbers.- d) Contains all the numbers from 1 to 1000 that have the digit 3 in them.- e) Given a list of strings, transform to upper if the first letter is a vowel and invert the string otherwise.       For example, ['apple', 'orange', 'watermelon'] -> ['APPLE','ORANGE', 'nolemretaw'] 2) Write function that takes a list with two numbers in it and determines if the sum of the digits of the two numbers are equal to each other. 3) Among all the numbers that are made from the product of two 3-digit numbers:- a) How many are odd numbers?- b) How many starts with the digit-8 and ends with digit-9- c) How many are palindromes? 4) Use functional programming to: - a) Filter the indexes with positive changes in the dictionary 'stock_indexes'.<jupyter_code>stock_indexes = {'FTSE 100':-0.3, 'DAX': -1.65, 'Dow Jones': -1.1, 'Ibovespa':0.2, 'S&P':0.65}<jupyter_output><empty_output><jupyter_text>- b) Apply a function that generates a list with the types of each element of the list 'elements'<jupyter_code>elements = [1,'economics', 9.8, 2 + 3j, ['a','b','c'], stock_indexes]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09781843771991555, 'fraction_numerical': 0.03237156931738212, 'mean_word_length': 4.469230769230769, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '167469', 'license': 'Apache-2.0', 'n_tokens_mistral': 464, 'n_tokens_neox': 420, 'n_words': 219, 'path': 'Assignments/2nd_Assignment.ipynb', 'repo_name': 'viguardieiro/Python_Course', 'size': '1421'}