Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Guided Practice 5 . 4 - Using Python Interacting with Notepad Task 1 Program Python to Notepad First you need to open the Notepad program
Guided Practice Using Python Interacting with Notepad
Task Program Python to Notepad
First you need to open the Notepad program and create a simple file shown below.
Save the file to your PythonFiles folder on your desktop: Save As Desktop Pythonfiles
Notepad.txtBe careful not to save the file as Notepadtxttxt Make sure you show file extensions.
Close the notepad file.
Now were going to write a Python program to add information to the file and then close the file when
the student enters a key. Call your program Notepadpy
Type the following
Enter some more write lines to the file and verify that they go into the notepad.txt file. Take a
screenshot of your notepad.txt file.
Deliverables for Task
Screenshot of your notepad.txt file
Task Running the Python code from the command line
Now were going to switch to running the Python code you just wrote from the command line.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started