Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 424 Bytes

Python_09_problemset.md

File metadata and controls

11 lines (8 loc) · 424 Bytes

Python 9 - Exceptions -Problem Set

  1. Add in exception handling to a script from Problem Set 8 or any script you have written that uses I/O to open and read a FASTA file.

    Throw and handle (try/except) the exception

    • if no input is provided
    • if the file cannot be opened
    • if the file does not end in '.fasta' or '.fa' or '.nt'
    • if a non ATGCN charcter is found in the sequence