---
# System prepended metadata

title: Python Ch8
tags: [python2021]

---

# Python Ch8
###### tags: `python2021`
* 要求 (request)：
    * 格式請依照ex1的標準 (檔名:hw7-1.py, hw7-2.py...，最後將所有檔案壓縮至學號.zip or 學號.7z上傳e3)
    * 輸出檔案內容以TA截圖為標準



# Question 1 : find the unique sequence

The following is a list that store repeat sequence,and now you need to find the unique sequence in list.

```python
list_store_restr=[
        "ATATAGAGACAGAGAGATAGCC",
        "ATATAGAGACAGAGAGATAGCC",
        "ATATGAGCACACAGATAGGACACCCCCAT" ,
        "ATATGAGCACACAGATAGGACACCCCCAT" ,
        "ATATGAGCACACAGATAGGACACCCCCAT" ,
        "ATATGAGCACATTTTTTTTTTAGGACACCCCCAT",
        "ATATGAGCACATTTTTTTTTTAGGACACCCCCAT",
        "ATATGAGCACATTTTTTTTTTAGGACACCCCCAT",
        "ATATGAGCACATTTTTTTTTTAGGACACCCCCAT",
        "ATATGAGCACACAGATAGGACACCCCCAT",
        "ATATGAGCACACAGATAGGACACCCCCAT",
        "ATATAGAGACAGAGAGATAGCC",
        "ATATGAGCACATTTTTTTTTTAGGACACCCCCAT",
        "ATATGAGCACATTTTTTTTTTAGGACACCCCCAT"]
```
![](https://i.imgur.com/iO4RcnX.jpg)

# Question 2
The file ***dp_sequences.txt*** stores a number of short DNA and protein sequence,
the longest of which consists of 10 monomers.
Each sequence is stored on a separate line. 
Write a program to determine what kind of sequence each line stores. 


![](https://i.imgur.com/UxqEhp2.jpg)