Using the IDLE development environment, "create a" Python script named tryme3.py ." Write a'' function in this file called nine_lines that uses a function called three_lines to print nine blank lines. Now add a function named clear_screen that prints out twenty-five blank lines. The last line of your program should call the function to clear_screen .
The function three_lines and new_line are defined below so that you can see a nested function call.
Submit your Python script file in the posting of your assignment. Your Python script should be either a .txt file or a .py file. You must execute your script and copy and paste the output produced into a document that you will submit along with your python script. It is very helpful if you print a placeholder between the printing of 9 lines and the printing of 25 lines. It will make your output easier to read for the assessor. A placeholder can be a comment such as "now printing 9 lines" or "now printing 25 lines".
You can submit the document as a Word 2003, or OpenOffice document. Open Office documents should be saved using with Word format and NOT the default format used by OpenOffice writer. (the file extension will be .doc.)
Recently Asked Questions
- 3) You are the foreman of the Bar-S cattle ranch in Colorado. A neighboring ranch has calves for sale, and you are going to buy some calves to add to the Bar-S
- The members of a club plan to share equally the cost of a $150,000 motorhome. If they can find 20 more people to join and share the cost, then the cost per
- MC intersects AVC at the lowest point on the AVC curve. Question 30 options: True False