Question: PARTICIPATION ACTIVITY 7 . 3 . 3 : Path name manipulation functions from os . path. What is the output of the following program? import
PARTICIPATION
ACTIVITY
: Path name manipulation functions from ospath.
What is the output of the following program?
import os
: NPrograma Wicrosoft Wmsword. exe'
print ospath,split p
CX; 'Programs', 'Microsoft', 'msword exe'
CNProgramslMMicrosoft', 'msword.exe'
C: 'Programs', 'Microsoft, 'msword exe'
What does the call ospath.isfile C: NProgram Files return?
True
False
What does ospath.getsizepathstr return?
The length of the pathstr string.
The combined size of all files in pathstr directory.
The size in bytes of the file at pathstr
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
