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.
Answer:
We can find our required template with the help of followings:
1. Search
We can search our required template from new dialog box. We just enter the name of our required template in search bar and will find the required one.
2. Scroll Bar
By using scroll bar, we can scroll up and down to find the required template.
3. Categories List
We also can find the required template, that may be defined as category. In categories list we can also find the required template.
<span>Pinhole cameras were one of the most sophisticated devices of the period, it made tasks much easier it basically worked exactly like the human eye and is something just like tracing.
Hope it helps! :)</span>
This is for Python
numbers = [7, 3, 6, 9, 0]
print(numbers.sort())
Output: [0, 3, 6, 7, 9]
numbers = [7, 3, 6, 9, 0]
print(numbers.sort(reverse = True))
Output: [9, 7, 6, 3, 0]
Answer:
because the printer ink is liquid
Explanation:
you need a dry paper to let the ink sit in place and print out the exact same thing that u needed to print if you're printing on a damp paper there is a chance it will affect the output of whatever your printing