Exercise 1: Open a new file in IDLE ("New Window" in the "File" menu) and save it as lab11.py in the directory where you
Posted: Fri May 20, 2022 11:29 am
Exercise 1: Open a new file in IDLE ("New Window" in the "File" menu) and save it as lab11.py in the directory where you keep the files you create for this course. Then copy the functions you wrote for Exercise 3: (menu Writing) from lab 9. into this file and save it. Now open a new file and save it in the same directory. You а should now be able to import your own module like this: import lab11 Try the following and write what you find. print(dir(lab11)) Use the function Factorial to calculate (3) Write 3 more different ways to import Factorial ()