Question: Please Write In Python The viscosity of gases depends on the temperature T. For some gases the following formula is relevant: where the values of

 Please Write In Python The viscosity of gases depends on the

Please Write In Python

The viscosity of gases depends on the temperature T. For some gases the following formula is relevant: where the values of the constants C, To, and Ho are found in a file viscosity.dat. The temperature is measured in Kelvin. Suppose we have already loaded the file into a string viscosity_data using the read method. viscosity_data contains data (in order as gas,C,T0, mu_0) such as viscosity_data-"air, 120,291.15,18.27" Convert the data in the string viscosity_data into a dictionary mu_air such that we can look up C, To, and Ho for air by mu_air[x], where X can be one of c', Te,or 'mu_e . The numerical values in mu_air should all be float s. For instance, the following statements should be True mu, air[ C' ] = 120.0 Hint: I would expect a correct answer to contain a for loop and a split method on commas. (There may be other ways of doing this but this seems most straightforward to me.) You'll need to throw away the zeroth element

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!