1. Save the above scripts like ‘translate.py’
2. change permission
chmod +x translate.py
3. compose your love letter or something in ‘plain english’ and save it as text. Let’s assume you wrote something like this
I love you so much, babe..
4. Then execute the script.
./translate.py love.txt >Iloveyousomuchbabe ATGATTTTATAGGTTGAATATTAGTGATCTTAGATGTGATGTCATGTGGCTGTGGAATAA
Now you have a functional ‘gene’ for your ‘love letter’!. Even it will be translated in the cell cause it has start and stop codon.