Answer:
import os
import shutil
# directory holding the file to be used
curr_path = "C:\\Users\\user\\Desktop\\test"
# change to the target directory absolute path
os.chdir(curr_path)
# create new folder in current directory
os.mkdir('C:\\Users\\user\\Desktop\\newFolder')
for root, dirs, files in os.walk("."):
for name in files:
# check if it is pdf
if name.endswith(".pdf"):
# find path
path = os.path.join(root, name)
# find size
size = os.stat(path).st_size
# print absolute path and size
print(os.path.abspath(path), "\t", size)
# copy the file to the new folder
shutil.copy(path, 'C:\\Users\\user\\Desktop\\newFolder\\'+name)
Explanation:
The python program uses the os and shutil python module, which is used to interact with the computer system operating system to get the absolute path of all the pdf text files using the os.walk() method to create an iterator to loop over, printing the path string and the file size. The shutil.copy() is used to make a copy of each pdf file in the new folder.
Answer:
Threat of substitute products or services
Explanation:
Threat of substitute products or services is one of the porter's 5 forces, it talks about a product being available for purchase by consumer as a replacement for a substitute product from another industry.
A product is considered a substitute if it offers the same satisfaction consumers gets from it when compared with another product of the same type but from another industry. As stated by Porter's 5 forces "Threat of substitute" helps to give structure to how competition is in an industry.
When there is the availability of threat of substitute for a product, it tends to affect the income of a particular industry that has a substitute to their product as consumers can decide to go for the substitute.
<span>the answer is most likely "Seismograph"</span>
By bringing everyone's attention to the work that has to be done, WBS can be utilized to prevent scope creep.
<h3>What is WBS?</h3>
WBS stands for Work Breakdown Structure. It facilitates task allocation. It is much simpler to allocate work to the proper person when a project is divided into manageable tasks or packages. This assists your team in making plans for tasks that must be accomplished in addition to the job at hand.
Thus, the WBS can be used as a key document to monitor and control a project because it makes the process of quickly creating a timetable easier, By assigning work estimates to particular WBS parts, the required task is described and organized by it.
Learn more about WBS here:
brainly.com/question/13090633
#SPJ1
Answer:
The output to this question is "one = 12; letter = 'B' ".
Explanation:
In the given code we define a method that is "strange" in this method we pass two variable that is "u and ch" where u is an integer variable and ch is character variable. Inside a method, we declare an integer variable that is "a" we use this variable 2 times.
- The first time we use variable a that increases the value of variable u by 1 and multiply by 2. and print its value.
- second time we use this variable (a) This time we use this for hold char variable value and increase the variable value by using type casting and print its value.
In calling time we pass value "5 and A " it will return "12 and B".