Title Reporting File Information
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_file_input_stat&ch=py_input_stat2
Platform Name PCEX
Features
Description Construct a program that receives the full path to an input file from the user, reads that file and reports the number of lines, the longest line, the number of words on each line, and the length of the longest word on each line. Make sure that the program handles each specific exception that could occur. Also, the program must ask the user for a valid file path until the user enters a file path that could be accessed without any exception.
Keywords exception handling, file i/o
Author Kamil Akhuseyinoglu
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=PYTHON&set=py_file_input_stat&ch=py_input_stat2
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Python
Natural Language en

Preview