Answer:
Following are the complete code to this question:
import os #import package
def parent_directory():#defining a method parent_directory
dir = os.getcwd()#defining dir that stores the getcwd method value
relative_parent = os.path.join(dir) #defining relative_parent variable that uses join method to adds directory
return os.path.dirname(relative_parent)#use return keyword to return directory name
print(parent_directory())#use print method to call parent_directory method
Output:
/
Note:
This program is run the online compiler that's why it will return "/"
Explanation:
In the given Python code, we import the "os" package, after that a method "parent_directory" is defined, which uses the dir with the "getcwd" method that stores the current working directory.
- After that "relative_parent" variable is declared, which uses the join method to store the directory value and use the return keyword to returns its value.
- In the next step, the print method is used, which calls the method.
Answer:
Dieline
Explanation:
Die lines are the lines printed on the flat piece of cardboard of which the boxes are being made. The cardboard is folded along the die lines to form a cardboard box. It is the die line which assists like a package template, which approves that a suitable layout for the artifact lastly printed. It’s also a drawing which references each of the cut lines as well as the package folds, but in the trampled style. And these are also being used for making the envelopes, numerous pocket size folders in addition to plentiful more.
Answer:
158.6 J
Explanation:
given,
distance = 8.7 m
force = 28 N
energy increased by 85 J
work done by the force = force * distance
work done by the force = 28 * 8.7
work done by the force = 243.6 J
work done on cube = 85 J
work done on floor = x J
total work done = 85+ x
243.6 J = 85J + x
x = 158.6 J
increase in the thermal energy of the floor along which the cube slides = 158.6 J
Hardware and software. Hardware for the printing, software for typing.