The Shared History of PERL and Python
Learning through Examples
- In a nutshell
- Example 1 - Hello World
- Example 2 - Multiplication Table
- Example 3 - Prime Number
A Quick View of Pythonland
- Python Keywords are Special Words
- Built-in Functions in Python
- References
Numbers and Variables
- In a nutshell
From Array to List
- In a nutshell
- Python Shortcuts on Lists
- Keywords ‘in’ and ‘del’
- Keyword - del
From Associative Array to Dictionary
- Iterating over keys and values
Loops and Conditions
- In a nutshell
- ‘while’ loop
- ‘if-else’
- ‘for’ Loops
- Using ‘for’ over a Dictionary
- Keywords ‘break’ and ‘continue’
From Subroutines to Functions
- In a nutshell
- Code Flow with Functions
- Default Parameter
- Importing Functions from a File
Strings
- In a nutshell
- Substring
- String-related Function
- Python String is a List
- String-related functions
Regular Expressions
- In a nutshell
- Search
- Search and Replace
- References
Reading and Writing Files
- In a nutshell
- Reading from a file
- Reading the entire file in an array
- Writing a string into a file
- File read/write symbols in PERL and Python
Modules and Packages
- In a nutshell
- Splitting Code into Multiple Files
From CPAN to PyPI
- In a nutshell
Useful Python Packages and Tools
- In a nutshell
- Python command line
- Numpy
- Jupyter Notebook
Class, Iterator, etc.
- Iterables, Iterators, Generators
From BioPERL to Biopython
- Analyzing Nucleotide and Protein Sequences
- Parsing Biological Records
- Objects to Store Different Types of Data
- Accessing Data from the Internet
- References
Closing Comments
- PERL6 than never came and Python3 that never got adopted