Convert nested list comprehensions to nested standard loops.
Rewrite the generation of the nested list q,
q = [r**2 for r in [10**i for i in range(5)]]
by using standard for loops instead of list comprehensions. Name of program file: listcomp2for.py.
Demonstrate list functionality.
Create an interactive session where you demonstrate the effect of each of the operations in Table 2.1 on page 75. Use IPython and log the results (see Exercise 1.12). Name of program file: list_demo.py. ⋄
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here