Skip to content
Pooja Bhatia Classes Hari Nagar
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
Pooja Bhatia Classes Hari Nagar

May 2019

5 . Import the above module basics.py and write statements for the following :

sa 11 ip chapter 9 / PythonCSIP CS IP

5 . Import the above module basics.py and write statements for the following : Read More »

2. Create module tempConverion.py as given in Fig. 9.3 in the chapter. If you invoke the module with two different types of import statements, how would the function call statement for imported module’s functions be affected ?

sa 11 ip chapter 9 / PythonCSIP CS IP

# tempconversion.py # Functions def to_centigrade(x): return 5*(x-32)/9.0 def to_fahrenheit(x): 9*x/5.0 + 32 # Constants FREEZING_C = 0.0 FREEZING_F = 32.0 ——————————————————————- # our program # if we import as following import tempconversion # then, our function calls would be as following a = tempconversion.to_centigrade(20) # if we import as following from tempconversion import to_centigrade

2. Create module tempConverion.py as given in Fig. 9.3 in the chapter. If you invoke the module with two different types of import statements, how would the function call statement for imported module’s functions be affected ? Read More »

Post pagination
← Previous 1 … 19 20 21 … 81 Next →
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
  • We teach following classes
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship

Copyright © 2026 Pooja Bhatia Classes Hari Nagar | Powered by Pooja Bhatia Classes Hari Nagar.