Module exercises

1. Write a module that contains Chapter 13, "hands-try" in the "name printed in capital letters" function. Then write a program that imports that module and call this function.

 

 

2. Modify the code in Listing 15-2, the c_to_f () included in the main program's namespace. That is, modify the code to be written:

3. Write a small program that generates a list of five random integers between 1 and 20, and printed out.

 

Guess you like

Origin www.cnblogs.com/clt0223/p/12103574.html