This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import random | |
import sys | |
import time | |
import urllib2 | |
from bs4 import BeautifulSoup | |
def csvify(tag): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/v/3PS-Xvpt9gc?version=3&start=227&end=287&autoplay=0&hl=en_US&rel=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RomanNumeral | |
VALUE_MAPPER = [['M', 1000], ['D', 500], ['L', 50], ['X', 10], ['IX', 9], ['V', 5], ['IV', 4], ['I', 1]] | |
def roman num | |
output = '' | |
while num > 0 | |
VALUE_MAPPER.each do |letter, letter_value| | |
num_of_letters = (num / letter_value) |