This uses the XML/HTML library BeautifulSoup . This could also be done using regex but playing with HTML and regex is usually a bad idea.
This uses the XML/HTML library BeautifulSoup . This could also be done using regex but playing with HTML and regex is usually a bad idea.
Problem: Given a sequence of numbers, show all possible letter combinations in a telephone keypad. Recursive solution in Python: [python] keyboard = { ‘1’: [],…
In case you can’t use Python’s itertools or in case you want a simple, recursive python implementation for a permutation of a list: [python] def…
Merging n lists of size k, using two different approaches. Original file on Github.
In order to help me to take decisions about which class to take every semester I did a web scrapping from the graduate and undergraduate bulletin. For every…
The newick tree The Newick tree format is a way of representing a graph trees with edge lengths using parentheses and commas. A newick tree…
DNA inspired sculpture by Charles Jencks. Creative Commons photo by Maria Keays. What is GenBank? The GenBank sequence database is a widely used collection of…
Quantos zeros tem entre um e mil? É mais fácil responder perguntas desse tipo escrevendo pequenos programas usando o suporte a programação funcional e compreensão…
I was looking for a date and time representation useful for registering stock quotes in a simple plain file. I found that the standard ISOÂ 8601…