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
'''Plays tic tac toe until you want it to stop.''' | |
def print_board(board): | |
''' | |
Prints the board and a key for the moves. | |
Parameters: | |
board (list): The board of moves and empty spaces. | |
''' | |
print(f'\n {board[0]} | {board[1]} | {board[2]} 1 | 2 | 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 requests | |
import json | |
import csv | |
from random import randint | |
from datetime import datetime | |
from requests.auth import HTTPBasicAuth | |
client_id = "XXXXXXXX" # This is real in the real one | |
client_secret = "XXXXXXXX" # This is real in the real one |
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
[ | |
{ | |
content: {...}, | |
data: [...], | |
id: 5689, | |
slug: 'mollis-sagittis-sed-eget-laoreet', | |
title: 'Mollis sagittis sed eget laoreet', | |
type: 'single', | |
}, | |
{ |