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
board = [' ' for i in range(3)] | |
board = [board.copy() for i in range(3)] | |
def printboard(board): | |
ch = ' | ' | |
print('Board: ') | |
for i in range(2): | |
print(ch.join(board[i])) | |
print('_'*10, end='\n\n') | |
print(ch.join(board[2])) |
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 itertools | |
family = ['jake', 'melissa', 'oliver', 'emily'] | |
years = ['1987', '1954', '1963'] | |
symbols = ["!","@","#","$","%","&","*","-","=","_","+",".",","] | |
count = 0 | |
for member in family: | |
for year in years: | |
for symbol in symbols: | |
words = [member, year, symbol] | |
for word in itertools.permutations(words,3): |
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 pickle | |
import time | |
import pandas as pd | |
from selenium import webdriver | |
import selenium.webdriver.support.ui as ui | |
def get_list(tags) -> str: | |
'''Converts list of tags to data string.''' |