Question: I6/61 Make a nested dictonary fr x+ https://relate.cs.illinois.edu/course/cs101 fa18/flow session M11877/5 Apps I PHYS 12: PhyScsICRod (1) IE Fixed At A. I MCB 300 at

I6/61 Make a nested dictonary fr x+ https://relate.cs.illinois.edu/course/cs101 fa18/flow session M11877/5 Apps I PHYS 12: PhyScsICRod (1) IE Fixed At A. I MCB 300 at the UWelcome, Mackenzie R 5 points The viscosity H of gases depends on the temperature T. For some gases the following formula is relevant: where the values of the constants C, T, and are found in a file viscosity.dat. The temperature is measured in Kelvin. Suppose we have already loaded the file into a string viscosity dete using the reed method. viscosity_data contains data (in order as Eas,C,TmSuch as: viscosity data- air,120,291.15,18.27 nitrogen, 111,300.55,17.81 oxygen,127,292.25,29.13 carbon dioxide, 240,293.15,14.8 carbon monoxide,118,288.15,17.2 hydrogen, 72,293.85,8.76 ammonia,37, 293.15,9.82 sulphur dioxide, 116,293.65,12.5 Convert the data in the string viscosity-data into a nested dictionary mu-data such that we can look up C. To, and Ao for a gas with a name nane by mu, data [nana](X], where x can be one of .C' , '-e. , or 'mu-e.. The numerical values In nu-data should all be floats. For instance, the following statements should be True: mu-datal 'air. J1120.0 mu data[ hydrogen' I T 293.85 Hint: I would expect a correct answer to contain a for loop. (There may be other ways of doing this but this seems most straightforward to me.) 41 PM O Type here to search I6/61 Make a nested dictonary fr x+ https://relate.cs.illinois.edu/course/cs101 fa18/flow session M11877/5 Apps I PHYS 12: PhyScsICRod (1) IE Fixed At A. I MCB 300 at the UWelcome, Mackenzie R 5 points The viscosity H of gases depends on the temperature T. For some gases the following formula is relevant: where the values of the constants C, T, and are found in a file viscosity.dat. The temperature is measured in Kelvin. Suppose we have already loaded the file into a string viscosity dete using the reed method. viscosity_data contains data (in order as Eas,C,TmSuch as: viscosity data- air,120,291.15,18.27 nitrogen, 111,300.55,17.81 oxygen,127,292.25,29.13 carbon dioxide, 240,293.15,14.8 carbon monoxide,118,288.15,17.2 hydrogen, 72,293.85,8.76 ammonia,37, 293.15,9.82 sulphur dioxide, 116,293.65,12.5 Convert the data in the string viscosity-data into a nested dictionary mu-data such that we can look up C. To, and Ao for a gas with a name nane by mu, data [nana](X], where x can be one of .C' , '-e. , or 'mu-e.. The numerical values In nu-data should all be floats. For instance, the following statements should be True: mu-datal 'air. J1120.0 mu data[ hydrogen' I T 293.85 Hint: I would expect a correct answer to contain a for loop. (There may be other ways of doing this but this seems most straightforward to me.) 41 PM O Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
