Your script is parsing filenames and is creating a count of how many files per file extension type exist within a directory. What slice could you use to extract the file extension substring, assuming the extensions are three letters only?
A) filename[-3:]
B) filename[-3]
C) filename[:-3]
D) filename[$-3]
Correct Answer:
Verified
Q31: The file method write expects a single
Q32: The encryption method that replaces a character
Q33: What string method can you use to
Q34: What happens if you attempt to access
Q35: You are parsing a comma separated value
Q37: After input is finished, another call to
Q38: What does a mode string of 'r'
Q39: What is the decimal number 98 in
Q40: The decimal number system, which utilizes the
Q41: What os.path module function can you use
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents