def team_hashtag(team, game_type):
    """Accepts a team name and returns the corresponding team hashtag."""

    team_hashtags = {
        "Anaheim Ducks": "#LetsGoDucks",
        "Arizona Coyotes": "#OurPack",
        "Boston Bruins": "#NHLBruins",
        "Buffalo Sabres": "#Sabres",
        "Calgary Flames": "#Flames",
        "Carolina Hurricanes": "#TakeWarning",
        "Chicago Blackhawks": "#Blackhawks",
        "Colorado Avalanche": "#GoAvsGo",
        "Columbus Blue Jackets": "#CBJ",
        "Dallas Stars": "#GoStars",
        "Detroit Red Wings": "#LGRW",
        "Edmonton Oilers": "#LetsGoOilers",
        "Florida Panthers": "#FlaPanthers",
        "Los Angeles Kings": "#GoKingsGo",
        "Minnesota Wild": "#mnwild",
        "Montréal Canadiens": "#GoHabsGo",
        "Nashville Predators": "#Preds",
        "New Jersey Devils": "#NJDevils",
        "New York Islanders": "#Isles",
        "New York Rangers": "#NYR",
        "Ottawa Senators": "#Sens",
        "Philadelphia Flyers": "#LetsGoFlyers",
        "Pittsburgh Penguins": "#LetsGoPens",
        "San Jose Sharks": "#SJSharks",
        "St. Louis Blues": "#stlblues",
        "Tampa Bay Lightning": "#GoBolts",
        "Toronto Maple Leafs": "#LeafsForever",
        "Vancouver Canucks": "#Canucks",
        "Vegas Golden Knights": "#VegasBorn",
        "Washington Capitals": "#ALLCAPS",
        "Winnipeg Jets": "#GoJetsGo"
    }

    team_hashtags_playoffs = {
        "Anaheim Ducks": "#LetsGoDucks",
        "Boston Bruins": "#GoBruins",
        "Colorado Avalanche": "#GoAvsGo",
        "Columbus Blue Jackets": "#CBJ",
        "Los Angeles Kings": "#GoKingsGo",
        "Minnesota Wild": "#mnwild",
        "Nashville Predators": "#standwithus",
        "New Jersey Devils": "#NowWeRise",
        "Philadelphia Flyers": "#EarnTomorrow",
        "Pittsburgh Penguins": "#3elieve",
        "San Jose Sharks": "#SJSharks",
        "Tampa Bay Lightning": "#GoBolts",
        "Toronto Maple Leafs": "#TMLTalk",
        "Vegas Golden Knights": "#VegasBorn",
        "Washington Capitals": "#ALLCAPS",
        "Winnipeg Jets": "#WPGWhiteout"
    }

    if game_type == "P":
        hashtag = team_hashtags_playoffs[team]
    else:
        hashtag = team_hashtags[team]
    return hashtag