Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| <!DOCTYPE html> | |
| <html lang="en" dir="ltr"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="style.css"> | |
| <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> | |
| <title>Form a Story</title> | |
| </head> | |
| <body> | |
| <section id="top"> |
| from node import Node | |
| class Queue: | |
| def __init__(self, max_size=None): | |
| self.head = None | |
| self.tail = None | |
| self.max_size = max_size | |
| self.size = 0 | |
| def enqueue(self, value): |
| class Business: | |
| def __init__(self, name, franchises): | |
| self.name = name | |
| self.franchises = franchises | |
| class Franchise: | |
| def __init__(self, address, menus): | |
| self.address = address | |
| self.menus = menus | |
| letters = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] | |
| points = [1, 3, 3, 2, 1, 4, 2, 4, 1, 8, 5, 1, 3, 4, 1, 3, 10, 1, 1, 1, 1, 4, 4, 8, 4, 10] | |
| #combining the two lists | |
| letters_to_points = {} | |
| for key, value in zip(letters, points): | |
| letters_to_points[key] = value | |
| #print(letters_to_points) | |
| #adding a blank tile to our dictionary |
| daily_sales = \ | |
| """Edith Mcbride ;,;$1.21 ;,; white ;,; | |
| 09/15/17 ,Herbert Tran ;,; $7.29;,; | |
| white&blue;,; 09/15/17 ,Paul Clarke ;,;$12.52 | |
| ;,; white&blue ;,; 09/15/17 ,Lucille Caldwell | |
| ;,; $5.13 ;,; white ;,; 09/15/17, | |
| Eduardo George ;,;$20.39;,; white&yellow | |
| ;,;09/15/17 , Danny Mclaughlin;,;$30.82;,; | |
| purple ;,;09/15/17 ,Stacy Vargas;,; $1.85 ;,; | |
| purple&yellow ;,;09/15/17, Shaun Brock;,; |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| destinations = ["Paris, France", "Shanghai, China", "Los Angeles, USA", "São Paulo, Brazil", "Cairo, Egypt"] | |
| test_traveler = ['Erin Wilkes', 'Shanghai, China', ['historical site', 'art']] | |
| attractions = [[] for attraction in destinations] | |
| def get_destination_index(destination): | |
| return destinations.index(destination) |