Skip to content
Permalink
196c1205be
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
6 lines (6 sloc) 296 Bytes
from RiotAPI import leagueCounterTips
def leagueInit(sentence):
"""Initialize League of Legends champion counter tips"""
i = sentence.index("counter")
champion = sentence[i+1] # The word that follows "counter" is the name of the champion
return leagueCounterTips(champion)