Question: #!/bin/env python import os os.system('mkdir Desktop/MyPythonFiles') os.system('touch Desktop/MyPythonFiles/python.txt') os.system('cp Desktop/MyPythonFiles/python.txt Documents/') os.system('ls -ltr Documents/') Create a folder on your desktop and name it MyPythonFiles. Use
#!/bin/env python import os os.system('mkdir Desktop/MyPythonFiles') os.system('touch Desktop/MyPythonFiles/python.txt') os.system('cp Desktop/MyPythonFiles/python.txt Documents/') os.system('ls -ltr Documents/')
Create a folder on your desktop and name it "MyPythonFiles". Use the Copy command to copy the file from your desktop to your documents folder. Provide the code for this as well as the screen shots of the desktop and then the documents folder with the new file I'm trying to get the code to work but I cannot for some reason.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
