print "This is a program to help you decide which team will win a basketball game" print print "When prompted, enter a number ranking each team on the prompted team skill on a scle form 1 to 100, with 1 being terrible and 100 being the best imaginable" print team_one = raw_input ("What is the name of team one:") team_two = raw_input ("What is the name of team two:") criteria = {"speed":100, "size":66, "jumping_ability":50, "defense":60, "shooting":75, "ballhandling":50, "rebounding":50} scoreonespeed = input ("rank the team speed of %s on a scale of 1 to 100:" % team_one) scoretwospeed = input ("rank the team speed of %s on a scale of 1 to 100:" % team_two) scoreonesize= input ("rank the team size of %s on scale of 1 to 100" % team_one) scoretwosize= input ("rank the team size of %s on scale of 1 to 100" % team_two) scoreonejumping_ability= input("rank the jumping ability of %s" % team_one) scoretwojumping_ability= input("rank the jumping ability of %s" % team_two) scoreonedefense = input ("ramk the defense of %s" % team_one) scoretwodefense = input ("ramk the defense of %s" % team_two) scoreoneshooting = input ("rank the shooting ability of %s" % team_one) scoretwoshooting = input ("rank the shooting ability of %s" % team_two) scoreoneballhandling= input("rank the ballhandling ability of %s:" % team_one) scoretwoballhandling= input("rank the ballhandling ability of %s:" % team_two) scoreonerebounding = input ("rank the rebounding ability of %s" % team_one) scoretworebounding = input ("rank the rebounding ability of %s" % team_two) scoreteamone = (criteria["speed"])*(scoreonespeed) + (criteria["size"])*(scoreonesize) +(criteria["jumping_ability"])*(scoreonejumping_ability) +(criteria["defense"])*(scoreonedefense) + (criteria["shooting"])*(scoreoneshooting) +(criteria["ballhandling"])*(scoreoneballhandling) +(criteria["rebounding"])*(scoreonerebounding) scoreteamtwo = (criteria["speed"])*(scoretwospeed) + (criteria["size"])*(scoretwosize) +(criteria["jumping_ability"])*(scoretwojumping_ability) +(criteria["defense"])*(scoretwodefense) + (criteria["shooting"])*(scoretwoshooting) +(criteria["ballhandling"])*(scoretwoballhandling) +(criteria["rebounding"])*(scoretworebounding) print "%s has a power ranking of %d" % (team_one, scoreteamone) print print "%s has a power ranking of %d" % (team_two, scoreteamtwo) if scoreteamone > scoreteamtwo: print "%s wins!!!" % team_one elif scoreteamone == scoreteamtwo: print "the two teams are a toss-up!!!" else: print "%s wins!!!" % team_two