Skip to content

Instantly share code, notes, and snippets.

View oohwooh's full-sized avatar

Lola oohwooh

View GitHub Profile
@oohwooh
oohwooh / my_second_calculator.py
Created September 16, 2020 21:08
My Second Calculator
# My second calculator
print('Calculator loading... please wait')
add = {i:{j:i+j for j in range(1000)} for i in range(1000)}
sub = {i:{j:i-j for j in range(1000)} for i in range(1000)}
mult = {i:{j:i*j for j in range(1000)} for i in range(1000)}
div = {i:{j:i/j for j in range(1,1000)} for i in range(1000)}
print('''
Welcome to my calculator!
Please make a selection
@mouse-reeve
mouse-reeve / fizzbuzz.py
Last active April 22, 2022 06:33
Fizzbuzz via answers.com
''' we're solving fizzbuzz with a little help from the web '''
from html.parser import HTMLParser
from urllib.request import Request, urlopen
import re
import time
base_url = 'https://www.answers.com/Q/'
tag_name = 'div'
class_name = 'answer-body'
delimiter = '_'