Question: 1 . In Python what happens with your file if an error occurs while reading or writing? a . Python automatically closes the file to
In Python what happens with your file if an error occurs while reading or writing? a Python automatically closes the file to avoid any damage in the file. b The file is corrupted until you close your Jupyter Notebook. c The file is permanently damaged. d The file is corrupted until you stop to run the current cell in Jupyter Notebook. In Python which data structure allows you to use any data type as a key? a A string b A dictionary c A list d An array In Python which of the following code statements can create a dictionary called fruits with the name of the fruit as a key and price as a data? Select ALL that apply. a fruits dictApple: "Strawberry": "Apricot": "Raspberry": "Mango": "Pineapple": "Watermelon": "Rockmelon": b fruits Apple: "Strawberry": "Apricot": "Raspberry": "Mango": "Pineapple": "Watermelon": "Rockmelon": cfruits dictApple: "Strawberry": "Apricot": "Raspberry": "Mango": "Pineapple": "Watermelon": "Rockmelon": d fruits Apple: "Strawberry": "Apricot": "Raspberry": "Mango": "Pineapple": "Watermelon": "Rockmelon": In Python what does mean in the arguments of a function? a The argument allows the variable with the same name change even if the function doesnt return the argument. b The argument will place all of the values into a tuple. c The argument will place all of the values into a dictionary.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
