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:
Following is attached the code that works accordingly as required. It reads in characters from standard input and outputs the number of times it sees an 'a' followed by the letter 'b'. All the description of program is given inside the code as comments.
I hope it will help you!
Explanation:
Answer:
The characteristic that is violated is Availability.
Explanation:
- The network is passing data at mostly, it means performance is good. Junior network engineer is doing his job well then there is minimum chance of network failure or lack of manageability.
- The scalability; range of computing capabilties can be managed by the engineer.
- However, sometimes the core router might get crashed due to unavailability of the network that is not under the control of the engineer.
A Lack of Empathy
The Victim Deserves It
Self-loathing
It Becomes an Addiction