Question: Given a file_path of a valid text file return the number of characters and number of lines in a file. Note: Ignore newlines for
""" Given a file_path of a valid text file return the number of characters and number of lines in a file. Note: Ignore newlines for the character count! :param file_path: File path with filename :return: tuple with number of characters and number of lines in that order """
def text_attributes(file_path):
pass
if __name__ == '__main__': write_file(os.path.join("data", "cpsc150.txt"), 5) append_file(os.path.join("data", "cpsc150.txt"), 15) file_path = os.path.join("data", "fourier_dataset.txt") fourier_analysis(file_path)
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
