Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 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
You can’t perform that action at this time.