Answer:
import os
def create_python_script(filename):
comments = "# new python script file"
with open(filename,"w+") as file:
file.write(comments)
filesize = os.path.getsize(filename)
print(f"The size of the file is: {filesize}")
create_python_script("program.py")
Explanation:
The os module is a built-in python file that is used to interact with the operating system terminal. The with keyword is used to create and open a file with write privileges with no need to close the file.
The path.getsize() method is used to get the size of the newly created file which is printed in the console.
What is the use for the secondary hard drive?
If it is to run another operating system, such as a Linux flavour or another version of Windows, you would need to:
1) correctly format your drive
2) Install your OS
If you are using the HDD alongside your current OS, you need to:
1) Lower the boot priority of that drive in your BIOS
2) Format your hdd for use in your OS.
(Use NTFS for Windows and HFS+ for OS X)
Answer:
You cite them correctly and that the statistics are real.
Explanation:
Answer:
You Probably should’nt do that
Explanation: