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
#!/usr/bin/env python3 | |
#-*- coding: utf-8 -*- | |
""" | |
Ask user size of gameboard and print to screen | |
""" | |
while True: | |
try: | |
size = int(input("How many squares on a side? ")) |
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
#!/usr/bin/env python3 | |
#-*- coding: utf-8 -*- | |
""" | |
Make a password generator with options for weak to strong. | |
Weak should select a word or two from a list, strong should contain | |
uppercase, lowercase, symbols and numbers. | |
""" | |
from sys import exit |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import requests | |
from bs4 import BeautifulSoup | |
from pprint import pprint | |
r = \ | |
requests.get('http://www.vanityfair.com/society/2014/06/monica-lewinsky-humiliation-culture') | |
soup = BeautifulSoup(r.text, "lxml") |
NewerOlder