1
2
from pprint import pprint
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
playerID nameFirst nameLast bats throws age year stints teamID lg G tap AB R H db tr HR RBI SB CS BB SO IBB hbp SH SF GIDP avg obp slg woba PRO GURU pos1 g1 gs1 po1 innouts1 a1 e1 dp1 pb1 pct1 pos2 g2 gs2 innouts2 po2 a2 e2 dp2 pb2 pos3 g3 gs3 innouts3 po3 a3 e3 dp3 pb3 pos4 g4 gs4 innouts4 po4 a4 e4 dp4 pb4 pos5 g5 gs5 innouts5 po5 a5 e5 dp5 pb5
aardsda01 David Aardsma R R 28 2009 1 SEA AL 73 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 - P 73 0 2 214 5 0 1 0 1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
playerID nameFirst nameLast bats throws age year stints teamID lg G tap AB R H db tr HR RBI SB CS BB SO IBB hbp SH SF GIDP avg obp slg woba PRO GURU ROTO xwoba VORP pos1 g1 gs1 po1 innouts1 a1 e1 dp1 pb1 pct1 pos2 g2 gs2 innouts2 po2 a2 e2 dp2 pb2 pos3 g3 gs3 innouts3 po3 a3 e3 dp3 pb3 pos4 g4 gs4 innouts4 po4 a4 e4 dp4 pb4 pos5 g5 gs5 innouts5 po5 a5 e5 dp5 pb5
aardsda01 David Aardsma R R 29 2010 1 SEA AL 53 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 - $- 0.319 P 53 0 149 2 3 1 0 0 0.833
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
help_dict = {}
help_dict["team_abbreviations"] = "this will allow you to type in the team abbreviations to get more information about the team"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
#with this dictionary function? the idea is to connect it to the help dictionary.
def get_help(help_dict):
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
#goal here is to create for dictionaries.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
#this was going to be experimental code but then I just did it in a new tab
#here is the trinket info
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
class UserInfo(object):
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
#I wanted to include this. This is the dictionary I created before I found dict comprehension
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Adding or removing files is disabled during broadcasting. You'll be able to update files again once the broadcast session is over.

Files listed here are available to use in your code in this trinket. Click the File Library button to include more or upload new files.

There was a problem connecting to the server.

Please check your connection and try running the trinket again.

Run your code first!

It looks like you haven't tried running your new code.

Try clicking  Run and if you like the result, try sharing again.

×