Create a solution that accepts an integer input representing the index value for any any of the five elements in the following list: various_data_types = [516, 112.49, True, "meow", ("Western", "Governors", "University"), {"apple": 1, "pear": 5}] Using the built-in function type() and getting its name by using the .name attribute, output data type (e.g., int", "float", "bool", "str") based on the input index value of the list element. The solution output should be in the format Element index_value: data_type {Ans: I_V = int(input()) if -1 <= I_V < len(various_data_types): element = various_data_types [I_V] D_T_N = str(type(element)).split("'")[1] print(f' Element {I_V}: {D_T_N}')}Task: Create a solution that accepts an input identifying the name of a text file, for example, "WordTextFile1.txt". Each text file contains three rows with one word per row. Using the open() function and write() and read() methods, interact with the input text file to write a new sentence string composed of the three existing words to the end of the file contents on a new line. Output the new file contents. The solution output should be in the format word1 word2 word3 sentence {Ans: file_name = input() with open(file_name, 'r') as file: lines = file.readlines() if len(lines) ==